Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielpotthast/057ebcda4443063c482a35bc453aa0e7 to your computer and use it in GitHub Desktop.
Save danielpotthast/057ebcda4443063c482a35bc453aa0e7 to your computer and use it in GitHub Desktop.
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