fix issue where Faker could choose the same word twice and fail the test

This commit is contained in:
Joe Fleming 2014-09-19 15:48:42 -07:00
parent 8a2a8e20fa
commit d3e3a9adcf

View file

@ -93,8 +93,8 @@ define(function (require) {
it('should persist global state', function () {
var wordCount = _.random(3, 6);
var globalStateSpy = sinon.spy(globalStateMock, 'writeToUrl');
var urls = faker.Lorem.words(wordCount).map(function (url) {
return '/' + url;
var urls = faker.Lorem.words(wordCount).map(function (url, i) {
return '/' + url + i;
});
urls.forEach(function (url) {