freeCodeCamp/curriculum/challenges/arabic/06-information-security-and.../advanced-node-and-express/clean-up-your-project-with-...

762 B

id title challengeType videoUrl localeTitle
589690e6f9fc0f352b528e6e Clean Up Your Project with Modules 2

Description

undefined

Instructions

undefined

Tests

tests:
  - text: ''
    testString: 'getUserInput => $.get(getUserInput("url")+ "/_api/server.js") .then(data => { assert.match(data, /require.*("|").\/routes.js("|")/gi, "You should have required your new files"); assert.match(data, /mongo.connect[^]*routes/gi, "Your new modules should be called after your connection to the database"); }, xhr => { throw new Error(xhr.statusText); })'

Challenge Seed

Solution

// solution required