mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-16 16:19:48 -05:00
Don't create a separate test for each l10n json
Reduces the spam in Travis for visibility
This commit is contained in:
parent
b9bfb007e0
commit
0db93fcc81
1 changed files with 6 additions and 10 deletions
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue