it('should fail validation if the bid isn\'t defined or not an object', function() { var result = spec.isBidRequestValid(); expect(result).to.equal(false); result = spec.isBidRequestValid('not an object'); expect(result).to.equal(false); });
it('should return an array of bid responses', function() { var responses = spec.interpretResponse(serverResponse); expect(responses).to.be.an('array').with.length(1); });
it('should build a very basic request', function() { var request = spec.buildRequests([bid], bidRequestObj); expect(request.method).to.equal('POST'); });