Skip to content
Snippets Groups Projects
Commit df9af6bb authored by Sean McArthur's avatar Sean McArthur
Browse files

un-fragile the :locale static resources test

parent 1738a76d
No related branches found
No related tags found
No related merge requests found
...@@ -55,9 +55,9 @@ suite.addBatch({ ...@@ -55,9 +55,9 @@ suite.addBatch({
assert.equal(files[minFile][nonLocalizedIndex], assert.equal(files[minFile][nonLocalizedIndex],
res[minRes][nonLocalizedIndex]); res[minRes][nonLocalizedIndex]);
}); });
// Fragile - filename with :locale...
// When fixing this test case... console.log(res[Object.keys(res)[0]]); // testing :locale has been replaced
var localeIndex = 8; var localeIndex = res[minRes].indexOf('/i18n/:locale/client.json');
assert.notEqual(files[minFile][localeIndex], assert.notEqual(files[minFile][localeIndex],
res[minRes][localeIndex]); res[minRes][localeIndex]);
var counter = 0; var counter = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment