boip
Version:
a command line application that creates a new project from a boilerplate stored on GitHub
15 lines (13 loc) • 430 B
JavaScript
const _ = require('lodash')
const pickupFiles = require('../pickupFiles')
test('pickupFiles test', async () => {
const res = await pickupFiles('mick-whats/pg-mick#sample')
expect(res.length > 5).toBeTruthy()
expect(_.last(res)).toMatch(
/mick-whats\/pg-mick
)
})
test('pickupFilestest', async () => {
const res = await pickupFiles('hogehogeRock')
expect(res).toEqual([])
})