Projects
Eulaceura:Factory
nodejs-locate-path
_service:obs_scm:test.js
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:test.js of Package nodejs-locate-path
import test from 'ava'; import m from './'; const input = [ 'noop.foo', 'unicorn.png', 'index.js', 'test.js' ]; test('async', async t => { t.is(await m(input), 'index.js'); t.is(await m(['nonexistant']), undefined); t.is(await m(['noop', 'unicorn'], {cwd: 'fixture'}), 'unicorn'); }); test('sync', t => { t.is(m.sync(input), 'index.js'); t.is(m.sync(['nonexistant']), undefined); t.is(m.sync(['noop', 'unicorn'], {cwd: 'fixture'}), 'unicorn'); });
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2