1.5 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			1.5 KiB
		
	
	
	
	
	
	
	
id, title, localeTitle, challengeType
| id | title | localeTitle | challengeType | 
|---|---|---|---|
| 587d7fb6367417b2b2512c06 | Install and Set Up Mongoose | Instalar e configurar o mangusto | 2 | 
Description
Instructions
Tests
tests:
  - text: "'mongodb' dependência deve estar em package.json"
    testString: 'getUserInput => $.get(getUserInput(''url'') + ''/_api/file/package.json'').then(data => { var packJson = JSON.parse(data);     assert.property(packJson.dependencies, ''mongodb''); }, xhr => { throw new Error(xhr.responseText); })'
  - text: "'mongoose' dependência deve estar em package.json"
    testString: 'getUserInput => $.get(getUserInput(''url'') + ''/_api/file/package.json'').then(data => { var packJson = JSON.parse(data);     assert.property(packJson.dependencies, ''mongoose''); }, xhr => { throw new Error(xhr.responseText); })'
  - text: "'mangusto' deve ser conectado a um banco de dados"
    testString: 'getUserInput => $.get(getUserInput(''url'') + ''/_api/is-mongoose-ok'').then(data => {assert.isTrue(data.isMongooseOk, ''mongoose is not connected'')}, xhr => { throw new Error(xhr.responseText); })'
Challenge Seed
Solution
// solution required