ChiragGhanshani / DB-Project

3 stars 0 forks source link

Testing Error in Assertions -- Failing Assertions Pass #13

Closed ChiragGhanshani closed 8 years ago

ChiragGhanshani commented 8 years ago

The following code passes when it should fail:

var expect = require('chai').expect; var db = require('../models/db.js'); var loginORM = require('../models/login.js');

describe('login ORM test', function(){ it('getUserID should return list', function(){ var parser = function(error, result){ expect(result[0].user_id).to.not.eql('ABD590'); done(); }

loginORM.getUserID('khoffee', 'abc123', parser);

}) });

ChiragGhanshani commented 8 years ago

@Khoffee @Josef0 @achernan @ElBarto47 In the future, when you notice an issue where the code is doing things that don't make sense to you (like in the description of the issue above), make an issue on the issues section so that everyone knows what it is and they can help you with it.