diff --git a/nodejs-has-ansi.spec b/nodejs-has-ansi.spec index dddb435..f59bba7 100644 --- a/nodejs-has-ansi.spec +++ b/nodejs-has-ansi.spec @@ -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 diff --git a/test.js b/test.js deleted file mode 100644 index 1374c50..0000000 --- a/test.js +++ /dev/null @@ -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(); -});