Last active
December 9, 2017 18:49
-
-
Save feus4177/355253369041cb07f800eac08c1478cb to your computer and use it in GitHub Desktop.
Test cases the do and don't need a plan
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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