delete test.js

This commit is contained in:
jackie_wu 2020-09-08 16:24:45 +08:00
parent df8b45add1
commit 572ae125e4
2 changed files with 0 additions and 14 deletions

View File

@ -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

12
test.js
View File

@ -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'));
});