diff --git a/nodejs-path-exists.spec b/nodejs-path-exists.spec index b7f71a8..4c464ce 100644 --- a/nodejs-path-exists.spec +++ b/nodejs-path-exists.spec @@ -8,7 +8,6 @@ Summary: Promisify a callback-style function License: MIT URL: https://github.com/sindresorhus/path-exists Source0: https://github.com/sindresorhus/path-exists/archive/v%{version}.tar.gz -Source1: https://raw.githubusercontent.com/sindresorhus/%{srcname}/v%{version}/test.js BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging @@ -20,7 +19,6 @@ BuildRequires: npm(ava) %prep %autosetup -n path-exists-%{version} -cp -p %{SOURCE1} . %build diff --git a/test.js b/test.js deleted file mode 100644 index e726a11..0000000 --- a/test.js +++ /dev/null @@ -1,12 +0,0 @@ -import test from 'ava'; -import m from './'; - -test('async', async t => { - t.true(await m('test.js')); - t.false(await m('fail')); -}); - -test('sync', t => { - t.true(m.sync('test.js')); - t.false(m.sync('fail')); -});