File: test.js

package info (click to toggle)
node-load-json-file 2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 100 kB
  • sloc: makefile: 2; sh: 2
file content (14 lines) | stat: -rw-r--r-- 296 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import path from 'path';
import test from 'ava';
import m from './';

const fixture = path.join(__dirname, 'package.json');

test('async', async t => {
	const data = await m(fixture);
	t.is(data.name, 'load-json-file');
});

test('sync', t => {
	t.is(m.sync(fixture).name, 'load-json-file');
});