Don't create a separate test for each l10n json

Reduces the spam in Travis for visibility
This commit is contained in:
Ray 2019-01-11 12:15:58 -05:00
parent b9bfb007e0
commit 0db93fcc81

View file

@ -11,17 +11,13 @@ const checkJson = (data, name) => {
} catch (e) {
tap.fail(name + ' has invalid Json.\n');
}
tap.pass();
};
files.forEach(function (f) {
tap.test('check valid json', function (t) {
fs.readFile(f, function (err, data) {
if (err) {
throw err;
}
checkJson(data, f);
});
t.end();
tap.test('check valid json', function (t) {
files.forEach(function (f) {
const data = fs.readFileSync(f);
checkJson(data, f);
});
t.pass();
t.end();
});