File: test.js

package info (click to toggle)
node-has-yarn 2.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 144 kB
  • sloc: javascript: 14; makefile: 2
file content (9 lines) | stat: -rw-r--r-- 185 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
const test = require('tape');
const hasYarn = require('.');

test('main', t => {
	t.true(hasYarn('fixtures/bar'));
	t.false(hasYarn('fixtures/foo'));
	t.false(hasYarn());
	t.end();
});