Skip to content

Commit

Permalink
Small whitespacing tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jul 22, 2015
1 parent 558b1f9 commit 9a437f2
Show file tree
Hide file tree
Showing 24 changed files with 30 additions and 33 deletions.
2 changes: 1 addition & 1 deletion test-sham/set-prototype-of.js
Expand Up @@ -3,7 +3,7 @@ describe('Object.setPrototypeOf(o, p)', function () {
'use strict';

it('changes prototype to regular objects', function () {
var obj = {a: 123};
var obj = { a: 123 };
expect(obj).to.be.an.instanceOf(Object);
// sham requires assignment to work cross browser
obj = Object.setPrototypeOf(obj, null);
Expand Down
10 changes: 5 additions & 5 deletions test/array.js
@@ -1,4 +1,4 @@
/*global describe, it, xit, expect, require, beforeEach */
/* global describe, it, xit, expect, require, beforeEach */

var runArrayTests = function () {
'use strict';
Expand Down Expand Up @@ -560,10 +560,10 @@ var runArrayTests = function () {

describe('#next()', function () {
it('should work when applied to an ArrayIterator', function () {
expect(arrayIterator.next.apply(arrayIterator)).to.eql({value: 0, done: false});
expect(arrayIterator.next.apply(arrayIterator)).to.eql({value: 1, done: false});
expect(arrayIterator.next.apply(arrayIterator)).to.eql({value: 2, done: false});
expect(arrayIterator.next.apply(arrayIterator)).to.eql({value: undefined, done: true});
expect(arrayIterator.next.apply(arrayIterator)).to.eql({ value: 0, done: false });
expect(arrayIterator.next.apply(arrayIterator)).to.eql({ value: 1, done: false });
expect(arrayIterator.next.apply(arrayIterator)).to.eql({ value: 2, done: false });
expect(arrayIterator.next.apply(arrayIterator)).to.eql({ value: undefined, done: true });
});

it('throws when not applied to an ArrayIterator', function () {
Expand Down
2 changes: 1 addition & 1 deletion test/browser-onload.js
@@ -1,4 +1,4 @@
/*global window, mocha */
/* global window, mocha */

if (typeof window !== 'undefined') {
window.completedTests = 0;
Expand Down
2 changes: 1 addition & 1 deletion test/browser-setup.js
@@ -1,4 +1,4 @@
/*global window, chai, mocha */
/* global window, chai, mocha */

if (typeof window !== 'undefined') {
chai.config.includeStack = true;
Expand Down
2 changes: 1 addition & 1 deletion test/collections.js
@@ -1,4 +1,4 @@
/*global describe, it, expect, require, beforeEach, afterEach */
/* global describe, it, expect, require, beforeEach, afterEach */

// Big thanks to V8 folks for test ideas.
// v8/test/mjsunit/harmony/collections.js
Expand Down
2 changes: 1 addition & 1 deletion test/date.js
@@ -1,4 +1,4 @@
/*global describe, it, expect, require */
/* global describe, it, expect, require */

describe('Date', function () {
it('when invalid, dates should toString to "Invalid Date"', function () {
Expand Down
2 changes: 1 addition & 1 deletion test/math.js
@@ -1,4 +1,4 @@
/*global describe, it, expect, require */
/* global describe, it, expect, require */

var Assertion = expect().constructor;
Assertion.prototype.almostEqual = function (obj, precision) {
Expand Down
2 changes: 1 addition & 1 deletion test/number.js
@@ -1,4 +1,4 @@
/*global describe, it, expect, require */
/* global describe, it, expect, require */

describe('Number', function () {
var functionsHaveNames = (function foo() {}).name === 'foo';
Expand Down
2 changes: 1 addition & 1 deletion test/object.js
@@ -1,4 +1,4 @@
/*global describe, it, expect, require, Symbol */
/* global describe, it, expect, require, Symbol */

describe('Object', function () {
(typeof process !== 'undefined' && process.env.NO_ES6_SHIM ? it.skip : it)('is on the exported object', function () {
Expand Down
3 changes: 1 addition & 2 deletions test/promise.js
@@ -1,4 +1,4 @@
/*global describe, it, expect, require, Promise */
/* global describe, it, expect, require, Promise */

/* This file is for testing implementation regressions of Promises. */

Expand Down Expand Up @@ -26,4 +26,3 @@ describe('Promise', function () {
expect(Promise.prototype).not.to.have.property('chain');
});
});

4 changes: 1 addition & 3 deletions test/promise/all.js
@@ -1,4 +1,4 @@
/*global it, describe, expect, assert, Promise */
/* global it, describe, expect, assert, Promise */

var failIfThrows = function (done) {
'use strict';
Expand Down Expand Up @@ -88,7 +88,6 @@ describe('Promise.all', function () {
}).then(done, failIfThrows(done));
});


it('should reject with a TypeError if given a non-iterable', function (done) {
var notIterable = {};

Expand Down Expand Up @@ -197,4 +196,3 @@ describe('Promise.all', function () {
then(done, failIfThrows(done));
});
});

2 changes: 1 addition & 1 deletion test/promise/evil-promises.js
@@ -1,4 +1,4 @@
/*global describe, specify, assert, Promise */
/* global describe, specify, assert, Promise */

describe('Evil promises should not be able to break invariants', function () {
'use strict';
Expand Down
2 changes: 1 addition & 1 deletion test/promise/promises-aplus.js
@@ -1,4 +1,4 @@
/*global describe, require, Promise */
/* global describe, require, Promise */

// tests from promises-aplus-tests

Expand Down
2 changes: 1 addition & 1 deletion test/promise/promises-es6.js
@@ -1,4 +1,4 @@
/*global describe, require */
/* global describe, require */

// tests from promises-es6-tests
(function () {
Expand Down
2 changes: 1 addition & 1 deletion test/promise/race.js
@@ -1,4 +1,4 @@
/*global describe, it, expect, setTimeout, assert, Promise */
/* global describe, it, expect, setTimeout, assert, Promise */

var failIfThrows = function (done) {
'use strict';
Expand Down
2 changes: 1 addition & 1 deletion test/promise/reject.js
@@ -1,4 +1,4 @@
/*global describe, it, expect, setTimeout, Promise */
/* global describe, it, expect, setTimeout, Promise */

var failIfThrows = function (done) {
'use strict';
Expand Down
2 changes: 1 addition & 1 deletion test/promise/resolve.js
@@ -1,4 +1,4 @@
/*global describe, it, expect, setTimeout, Promise */
/* global describe, it, expect, setTimeout, Promise */

var failIfThrows = function (done) {
'use strict';
Expand Down
2 changes: 1 addition & 1 deletion test/promise/simple.js
@@ -1,4 +1,4 @@
/*global describe, specify, assert, Promise */
/* global describe, specify, assert, Promise */

var failIfThrows = function (done) {
'use strict';
Expand Down
2 changes: 1 addition & 1 deletion test/promise/subclass.js
@@ -1,4 +1,4 @@
/*global it, describe, assert, Promise */
/* global it, describe, assert, Promise */

describe('Support user subclassing of Promise', function () {
'use strict';
Expand Down
2 changes: 1 addition & 1 deletion test/reflect.js
@@ -1,4 +1,4 @@
/*global describe, xdescribe, it, xit, expect, require, Reflect */
/* global describe, xdescribe, it, xit, expect, require, Reflect */

var arePropertyDescriptorsSupported = function () {
try {
Expand Down
2 changes: 1 addition & 1 deletion test/regexp.js
@@ -1,4 +1,4 @@
/*global beforeEach, describe, xdescribe, it, xit, expect, require */
/* global beforeEach, describe, xdescribe, it, xit, expect, require */

var getRegexLiteral = function (stringRegex) {
try {
Expand Down
6 changes: 3 additions & 3 deletions test/string.js
@@ -1,4 +1,4 @@
/*global describe, it, expect, require */
/* global describe, it, expect, require */

var runStringTests = function () {
'use strict';
Expand Down Expand Up @@ -544,11 +544,11 @@ var runStringTests = function () {
var callSite = {};

var str = 'The total is 10 ($11 with tax)';
callSite.raw = {0: 'The total is ', 1: ' ($', 2: ' with tax)', length: 3};
callSite.raw = { 0: 'The total is ', 1: ' ($', 2: ' with tax)', length: 3 };
expect(String.raw(callSite, 10, 11)).to.eql(str);

str = 'The total is {total} (${total * 1.01} with tax)';
callSite.raw = {0: 'The total is ', 1: ' ($', 2: ' with tax)', length: 3};
callSite.raw = { 0: 'The total is ', 1: ' ($', 2: ' with tax)', length: 3 };
expect(String.raw(callSite, '{total}', '{total * 1.01}')).to.eql(str);
});

Expand Down
2 changes: 1 addition & 1 deletion test/test_helpers.js
@@ -1,4 +1,4 @@
/*global expect: true, assert: true, require, process */
/* global expect: true, assert: true, require, process */

expect = (function () {
var chai = require('chai');
Expand Down
2 changes: 1 addition & 1 deletion test/worker-test.js
@@ -1,4 +1,4 @@
/*global describe, it, expect, Worker, location */
/* global describe, it, expect, Worker, location */

describe('Worker', function () {
var workerErrorEventToError = function (errorEvent) {
Expand Down

0 comments on commit 9a437f2

Please sign in to comment.