From 572ae125e40326508f2f215b2706c2094e7ef1d1 Mon Sep 17 00:00:00 2001 From: jackie_wu Date: Tue, 8 Sep 2020 16:24:45 +0800 Subject: [PATCH] delete test.js --- nodejs-path-exists.spec | 2 -- test.js | 12 ------------ 2 files changed, 14 deletions(-) delete mode 100644 test.js 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')); -});