Remove console.assert in ol.structs.PriorityQueue tests
This commit is contained in:
@@ -11,19 +11,9 @@ describe('ol.structs.PriorityQueue', function() {
|
|||||||
|
|
||||||
describe('when empty', function() {
|
describe('when empty', function() {
|
||||||
|
|
||||||
var pq, origAssert;
|
var pq;
|
||||||
beforeEach(function() {
|
beforeEach(function() {
|
||||||
origAssert = console.assert;
|
pq = new ol.structs.PriorityQueue(identity, identity);
|
||||||
console.assert = function(assertion, message) {
|
|
||||||
if (!assertion) {
|
|
||||||
throw new Error(message);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
pq = new ol.structs.PriorityQueue(
|
|
||||||
identity, identity);
|
|
||||||
});
|
|
||||||
afterEach(function() {
|
|
||||||
console.assert = origAssert;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('is empty', function() {
|
it('is empty', function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user