From df9af6bb2f32b2e784bff812d7d87bae676c1e3a Mon Sep 17 00:00:00 2001 From: Sean McArthur <sean.monstar@gmail.com> Date: Thu, 13 Sep 2012 18:13:02 -0700 Subject: [PATCH] un-fragile the :locale static resources test --- tests/static-resource-test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/static-resource-test.js b/tests/static-resource-test.js index 76307a47a..ad7fc916e 100755 --- a/tests/static-resource-test.js +++ b/tests/static-resource-test.js @@ -55,9 +55,9 @@ suite.addBatch({ assert.equal(files[minFile][nonLocalizedIndex], res[minRes][nonLocalizedIndex]); }); - // Fragile - filename with :locale... - // When fixing this test case... console.log(res[Object.keys(res)[0]]); - var localeIndex = 8; + + // testing :locale has been replaced + var localeIndex = res[minRes].indexOf('/i18n/:locale/client.json'); assert.notEqual(files[minFile][localeIndex], res[minRes][localeIndex]); var counter = 0; -- GitLab