mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-03-28 05:41:58 -04:00
Merge pull request #2667 from rschamp/l10n-spam
Don't create a separate test for each l10n json
This commit is contained in:
commit
348403a407
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…
Add table
Reference in a new issue