mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(test): remove build from mobile curriculum test (#45804)
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
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');
|
||||
|
||||
if (envData.clientLocale == 'english' && !envData.showUpcomingChanges) {
|
||||
@@ -16,13 +14,6 @@ if (envData.clientLocale == 'english' && !envData.showUpcomingChanges) {
|
||||
|
||||
const validateMobileSuperBlock = mobileSchemaValidator();
|
||||
|
||||
let curriculum;
|
||||
|
||||
beforeAll(async () => {
|
||||
curriculum = await getChallengesForLang('english');
|
||||
await buildMobileCurriculum(curriculum);
|
||||
}, 20000);
|
||||
|
||||
test('the mobile curriculum should have a static folder with multiple files', () => {
|
||||
expect(fs.existsSync(`${mobileStaticPath}/mobile`)).toBe(true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user