Created
June 12, 2016 12:46
-
-
Save jhartikainen/84dad654196619b5460fd08cb234f031 to your computer and use it in GitHub Desktop.
Parametrized test with Mocha example
This file contains hidden or 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
describe('Something', function() { | |
var values = ['a', 'b', 'c']; | |
values.forEach(function(val) { | |
it('should do something with ' + val + ' in this test', function() { | |
assert.equal(foo(), val); | |
}); | |
}) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment