Update md5map fixtures for tests

Also cleaned up comments from @mewtaylor
This commit is contained in:
chrisgarrity 2016-10-11 19:28:13 -04:00
parent 1339683a73
commit 5b2ff1a4ca
5 changed files with 8 additions and 8 deletions

View file

@ -6,7 +6,7 @@ var crypto = require('crypto');
var fs = require('fs');
var path = require('path');
var po2icu = require('po2icu');
var isArray = require('lodash.isArray');
var isArray = require('lodash.isarray');
var Helpers = {};

View file

@ -59,7 +59,7 @@
"keymirror": "0.1.1",
"lodash.clone": "3.0.3",
"lodash.defaultsdeep": "3.10.0",
"lodash.isarray": "^3.0.4",
"lodash.isarray": "3.0.4",
"lodash.merge": "3.3.2",
"lodash.omit": "3.1.0",
"lodash.range": "3.0.1",

View file

@ -215,7 +215,7 @@ var Splash = injectIntl(React.createClass({
<Box
key="curator_top_projects"
title={
formatMessage({id: 'splash.projectsCuratedBy', defaultMessage: 'Projects Curated by '}) +
formatMessage({id: 'splash.projectsCuratedBy'}) +
this.state.featuredGlobal.curator_top_projects[0].curator_name}
moreTitle={formatMessage({id: 'general.learnMore', defaultMessage: 'Learn More'})}
moreHref="/studios/386359/">

View file

@ -1,4 +1,4 @@
{
"2ec20d41b181e1a41c071e13f414a74d": "test.id1",
"37ba6d5ef524504215f478912155f9ba": "test.id2"
"2ec20d41b181e1a41c071e13f414a74d": ["test.id1"],
"37ba6d5ef524504215f478912155f9ba": ["test.id2"]
}

View file

@ -11,9 +11,9 @@ tap.test('buildLocalesMergeTranslations', function (t) {
'Isn\'t it ironic? No.': 'Es irónico? No.'
};
var md5map = {
'c21ce5ceefe167028182032d4255a384': 'test.test1',
'9c40648034e467e16f8d6ae24bd610ab': 'test.test2',
'6885a345adafb3a9dd43d9f549430c88': 'test.test3'
'c21ce5ceefe167028182032d4255a384': ['test.test1'],
'9c40648034e467e16f8d6ae24bd610ab': ['test.test2'],
'6885a345adafb3a9dd43d9f549430c88': ['test.test3']
};
var mergedTranslations = buildLocales.mergeNewTranslations(existingTranslations, newTranslations, {}, md5map);