fix: only test mobile curriculum on english (#45558)
This commit is contained in:
committed by
GitHub
parent
b2a96e0a09
commit
07cfc8b83b
@ -2,10 +2,12 @@ const path = require('path');
|
||||
const fs = require('fs');
|
||||
const { AssertionError } = require('chai');
|
||||
const { getChallengesForLang } = require('../../../curriculum/getChallenges');
|
||||
const envData = require('../../../config/env.json');
|
||||
const { buildMobileCurriculum } = require('./build-mobile-curriculum');
|
||||
const { mobileSchemaValidator } = require('./mobileSchema');
|
||||
|
||||
describe('mobile curriculum build', () => {
|
||||
if (envData.clientLocale == 'english' && !envData.showUpcomingChanges) {
|
||||
describe('mobile curriculum build', () => {
|
||||
const mobileStaticPath = path.resolve(__dirname, '../../../client/static');
|
||||
const blockIntroPath = path.resolve(
|
||||
__dirname,
|
||||
@ -24,9 +26,9 @@ describe('mobile curriculum build', () => {
|
||||
test('the mobile curriculum should have a static folder with multiple files', () => {
|
||||
expect(fs.existsSync(`${mobileStaticPath}/mobile`)).toBe(true);
|
||||
|
||||
expect(fs.readdirSync(`${mobileStaticPath}/mobile`).length).toBeGreaterThan(
|
||||
0
|
||||
);
|
||||
expect(
|
||||
fs.readdirSync(`${mobileStaticPath}/mobile`).length
|
||||
).toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
test('the mobile curriculum should have access to the intro.json file', () => {
|
||||
@ -50,4 +52,9 @@ describe('mobile curriculum build', () => {
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
} else {
|
||||
describe.skip('Mobile curriculum is not localized', () => {
|
||||
test.todo('localized tests');
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user