Created
March 18, 2019 10:40
-
-
Save danielpotthast/057ebcda4443063c482a35bc453aa0e7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe("Queue model", function () { | |
let mockQueue; | |
beforeEach(function() { | |
mockQueue = new Queue(); | |
}); | |
it("expect count to be one when added one element", function() { | |
mockQueue.addElement({ | |
"eventObject": "https://www.google.de", | |
"eventType": "download" | |
}); | |
expect(mockQueue.count()).toBe(1); | |
expect(mockQueue.getElement(0)).toEqual(Object({ | |
eventObject: "https://www.google.de", eventType: "download" | |
})); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment