Fix unit test using strict mode for random.js
This commit is contained in:
parent
2f74acc94f
commit
3919441bbc
|
@ -564,8 +564,8 @@ describe('Random Buffer', function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Throw error if not initialized', function () {
|
it('Throw error if not initialized', function () {
|
||||||
expect(randomBuffer.set).to.throw('RandomBuffer is not initialized');
|
expect(randomBuffer.set.bind(randomBuffer)).to.throw('RandomBuffer is not initialized');
|
||||||
expect(randomBuffer.get).to.throw('RandomBuffer is not initialized');
|
expect(randomBuffer.get.bind(randomBuffer)).to.throw('RandomBuffer is not initialized');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Initialization', function () {
|
it('Initialization', function () {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user