handle gulp in seperate module
This commit is contained in:
11
test/test.ts
11
test/test.ts
@ -5,6 +5,10 @@ import { expect, tap } from 'tapbundle'
|
||||
|
||||
import * as vinyl from 'vinyl'
|
||||
|
||||
// ---------------------------
|
||||
// smartfile.fs
|
||||
// ---------------------------
|
||||
|
||||
tap.test('.fs.fileExistsSync -> should return an accurate boolean', async () => {
|
||||
expect(smartfile.fs.fileExistsSync('./test/mytest.json')).to.be.true
|
||||
expect(smartfile.fs.fileExistsSync('./test/notthere.json')).be.false
|
||||
@ -91,7 +95,7 @@ tap.test('smartfile.fs.removeManySync -> should remove and array of single files
|
||||
})
|
||||
|
||||
// ---------------------------
|
||||
// .interpreter
|
||||
// smartfile.interpreter
|
||||
// ---------------------------
|
||||
|
||||
tap.test('.interpreter.filetype() -> should get the file type from a string', async () => {
|
||||
@ -125,11 +129,6 @@ tap.test('.fs.toVinylSync -> should read an ' + '.json OR .yaml' + ' file to an
|
||||
expect(vinyl.isVinyl(testData)).to.be.true
|
||||
})
|
||||
|
||||
tap.test('.memory.toGulpStream() -> should produce a valid gulp stream', async () => {
|
||||
let localArray = [ 'test1', 'test2', 'test3' ]
|
||||
smartfile.memory.toGulpStream(localArray)
|
||||
})
|
||||
|
||||
tap.test('.memory.toVinylFileSync() -> should produce a vinylFile', async () => {
|
||||
let localString = 'myString'
|
||||
let localOptions = { filename: 'vinylfile2', base: '/someDir' }
|
||||
|
Reference in New Issue
Block a user