diff options
Diffstat (limited to 'test.js')
-rw-r--r-- | test.js | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -0,0 +1,13 @@ +import test from 'ava'; +import m from '.'; + +test('async', async t => { + const result = await m('index.js'); + t.is(result.contentType, 'com.netscape.javascript-source'); + t.is(result.fsName, 'index.js'); +}); + +test('sync', t => { + const result = m.sync('index.js'); + t.is(result.contentType, 'com.netscape.javascript-source'); +}); |