Fix coding style in test/unit/stream_spec.js
This commit is contained in:
parent
e808bf5736
commit
9dfc26e1e3
1 changed files with 5 additions and 3 deletions
|
@ -9,13 +9,15 @@ describe('stream', function() {
|
||||||
this.addMatchers({
|
this.addMatchers({
|
||||||
toMatchTypedArray: function(expected) {
|
toMatchTypedArray: function(expected) {
|
||||||
var actual = this.actual;
|
var actual = this.actual;
|
||||||
if (actual.length != expected.length)
|
if (actual.length != expected.length) {
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
for (var i = 0, ii = expected.length; i < ii; i++) {
|
for (var i = 0, ii = expected.length; i < ii; i++) {
|
||||||
var a = actual[i], b = expected[i];
|
var a = actual[i], b = expected[i];
|
||||||
if (a !== b)
|
if (a !== b) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue