Skip to content

Commit

Permalink
Avoid a jscs error on Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Oct 29, 2014
1 parent a8578d4 commit 1fae406
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/string.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,14 @@ var runStringTests = function () {
expect('abc'.startsWith('bc', -Infinity)).to.equal(false);
if (hasStrictMode) {
expect(function () {
''.startsWith.call(null, 'nu');
return ''.startsWith.call(null, 'nu');
}).to['throw'](TypeError);
expect(function () {
''.startsWith.call(undefined, 'un');
return ''.startsWith.call(undefined, 'un');
}).to['throw'](TypeError);
}
var myobj = {
toString: function () {return 'abc';},
toString: function () { return 'abc'; },
startsWith: String.prototype.startsWith
};
expect(myobj.startsWith('abc')).to.equal(true);
Expand Down Expand Up @@ -172,10 +172,10 @@ var runStringTests = function () {
expect('abc'.endsWith('bc', NaN)).to.equal(false);
if (hasStrictMode) {
expect(function () {
''.endsWith.call(null, 'ull');
return ''.endsWith.call(null, 'ull');
}).to['throw'](TypeError);
expect(function () {
''.endsWith.call(undefined, 'ned');
return ''.endsWith.call(undefined, 'ned');
}).to['throw'](TypeError);
}

Expand Down

0 comments on commit 1fae406

Please sign in to comment.