fliphub-monorepo
Version:
the builder of builders
15 lines (12 loc) • 424 B
JavaScript
const test = require('ava')
const fosho = require('fosho')
const {Finder} = require('../src')
const {src} = require('./fixtures/files')
test('finds with file only - without ext', t => {
const found = Finder.file('eh').find()
fosho(found, t).str().isAbs().exists().eq(src)
})
test('finds with file only - with ext', t => {
const found = Finder.file('eh.js').find()
fosho(found, t).str().isAbs().exists().eq(src)
})