Skip to content

Instantly share code, notes, and snippets.

@feus4177
Last active December 9, 2017 18:49
Show Gist options
  • Save feus4177/355253369041cb07f800eac08c1478cb to your computer and use it in GitHub Desktop.
Save feus4177/355253369041cb07f800eac08c1478cb to your computer and use it in GitHub Desktop.
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 () {
assert(someCondition, 'some message');
assert(anotherCondition, 'another message');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment