delete extra file

This commit is contained in:
wangxiao65 2020-09-03 17:30:19 +08:00
parent 3dc1e7b0b6
commit a0a76c6bbc
2 changed files with 0 additions and 14 deletions

View File

@ -11,9 +11,6 @@ License: MIT
URL: https://github.com/chalk/has-ansi
#https://codeload.github.com/chalk/has-ansi/tar.gz/2.0.0
Source0: %{name}-%{version}.tar.gz
# The test files are not included in the npm tarball.
#https://raw.githubbusercontent.com/chalk/has-ansi/a71691f773eb78e1de02ffbf1968047c77366b71/test.js
Source1: test.js
ExclusiveArch: %{nodejs_arches} noarch
BuildArch: noarch
@ -29,8 +26,6 @@ Check if a string has ANSI escape codes
%prep
%setup -q -n %{packagename}-%{version}
# setup the tests
cp -p %{SOURCE1} .
%build

View File

@ -1,9 +0,0 @@
'use strict';
var test = require('ava');
var hasAnsi = require('./');
test(function (t) {
t.assert(hasAnsi('foo\u001b[4mcake\u001b[0m'));
t.assert(!hasAnsi('cake'));
t.end();
});