Skip to content

Instantly share code, notes, and snippets.

@feus4177
feus4177 / plan-tests.js
Last active December 9, 2017 18:49
Test cases the do and don't need a plan
const assert = require('assert');
const tap = require('tap');
tap.test('Needs plan', function () {
if (someCondition) {
assert(anotherCondition, 'another message');
}
});
tap.test('Does not need plan', function () {