Created
July 28, 2015 10:05
-
-
Save jasdeepkhalsa/2856d89cb2c05039b0cb to your computer and use it in GitHub Desktop.
Jasmine Dynamically Generated Tests
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
describe('add()', function() { | |
var tests = [ | |
{bool: true, name: 'lol'}, | |
{bool: true, name: 'a'}, | |
{bool: true, name: 'b'}, | |
{bool: true, name: 'b'} | |
]; | |
tests.forEach(function(test) { | |
it('correctly adds ' + test.name + ' args', function() { | |
expect(true).toEqual(test.bool); | |
}); | |
}); | |
}); | |
// => Output 4 Tests successfully completed |
Author
jasdeepkhalsa
commented
Aug 6, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment