diff options
author | Sindre Sorhus <sindresorhus@gmail.com> | 2017-12-29 21:14:52 +0100 |
---|---|---|
committer | Sindre Sorhus <sindresorhus@gmail.com> | 2017-12-29 22:15:18 +0100 |
commit | 58bb6ffee1c8c26cb360fe0f1107fd6f5b7f5dfb (patch) | |
tree | 2ee6317a8e897e10047c2f1cce6a75b20ac11dc2 /test.js | |
download | file-metadata-58bb6ffee1c8c26cb360fe0f1107fd6f5b7f5dfb.tar.gz file-metadata-58bb6ffee1c8c26cb360fe0f1107fd6f5b7f5dfb.tar.bz2 file-metadata-58bb6ffee1c8c26cb360fe0f1107fd6f5b7f5dfb.zip |
Init
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'); +}); |