diff --git a/lessons/08-tests-tasks/twotter/tests/server/testSpec.js b/lessons/08-tests-tasks/twotter/tests/server/testSpec.js index e79b7b4c..cd0801c4 100644 --- a/lessons/08-tests-tasks/twotter/tests/server/testSpec.js +++ b/lessons/08-tests-tasks/twotter/tests/server/testSpec.js @@ -24,6 +24,8 @@ }); }); +// why are you requiring everything twice with different paths?? Things are not working... + require('./../../../app'); // to connect to the database var expect = require('chai').expect; var User = require('./../../../models/userModel'); @@ -49,12 +51,15 @@ describe('User Model', function() { done(); }); }); +}); + +// There wasn't a comma after text. How did you submit this if it wasn't working? Also all describe test suites were not fully completed with brackets.. describe('Twote Model', function() { it('should create a new twote', function(done) { var twote = new Twote({ user: 'test_user', - text: 'test_twote_content' + text: 'test_twote_content', datetime: new Date().toLocaleString() }); user.save(function(err) { @@ -64,7 +69,7 @@ describe('Twote Model', function() { done(); }); }); - +}); describe("Twotter App", function(){ @@ -72,4 +77,4 @@ describe('Twote Model', function() { request(app).get('/').expect(200).end(function(err, res){ }); }); - }) \ No newline at end of file + }); \ No newline at end of file