From 7fb53dcdfa2dcf83682361a3cf160717be8a0d93 Mon Sep 17 00:00:00 2001 From: sylhare Date: Wed, 21 Feb 2018 09:01:24 -0500 Subject: [PATCH] Fixing missing semi-colons --- spec/core/ClockSpec.js | 2 +- spec/core/UserContextSpec.js | 2 +- spec/core/integration/CustomMatchersSpec.js | 2 +- spec/core/integration/EnvSpec.js | 2 +- spec/core/matchers/matchersUtilSpec.js | 6 ++-- .../matchers/toBeGreaterThanOrEqualSpec.js | 2 +- spec/core/matchers/toEqualSpec.js | 32 +++++++++---------- spec/core/matchers/toHaveClassSpec.js | 2 +- spec/html/HtmlReporterSpec.js | 2 +- 9 files changed, 26 insertions(+), 26 deletions(-) diff --git a/spec/core/ClockSpec.js b/spec/core/ClockSpec.js index f094370c..b330b6c7 100644 --- a/spec/core/ClockSpec.js +++ b/spec/core/ClockSpec.js @@ -669,7 +669,7 @@ describe("Clock (acceptance)", function() { expect(global.Date().getTime()).toEqual(baseTime.getTime() + 5); expect(actualTimes).toEqual([baseTime.getTime(), baseTime.getTime() + 1, baseTime.getTime() + 3]); - }) + }); it('correctly clears a scheduled timeout while the Clock is advancing', function () { var delayedFunctionScheduler = new jasmineUnderTest.DelayedFunctionScheduler(), diff --git a/spec/core/UserContextSpec.js b/spec/core/UserContextSpec.js index f4c0f3f0..ff71c84d 100644 --- a/spec/core/UserContextSpec.js +++ b/spec/core/UserContextSpec.js @@ -32,7 +32,7 @@ describe("UserContext", function() { describe('when using a regular object as parameter', function() { beforeEach(function() { this.context = {}; - this.value = 'value' + this.value = 'value'; this.context.key = this.value; this.cloned = jasmineUnderTest.UserContext.fromExisting(this.context); }); diff --git a/spec/core/integration/CustomMatchersSpec.js b/spec/core/integration/CustomMatchersSpec.js index 04f345ec..6c1fba2b 100644 --- a/spec/core/integration/CustomMatchersSpec.js +++ b/spec/core/integration/CustomMatchersSpec.js @@ -121,7 +121,7 @@ describe("Custom Matchers (Integration)", function() { var specExpectations = function(result) { expect(result.status).toEqual('passed'); - } + }; env.addReporter({ specDone: specExpectations, jasmineDone: done }); env.execute(); diff --git a/spec/core/integration/EnvSpec.js b/spec/core/integration/EnvSpec.js index 93baf7ed..e568dc30 100644 --- a/spec/core/integration/EnvSpec.js +++ b/spec/core/integration/EnvSpec.js @@ -892,7 +892,7 @@ describe("Env integration", function() { }; env.describe('test suite', function() { - env.beforeAll(function() { env.spyOn(testObj, 'foo');}) + env.beforeAll(function() { env.spyOn(testObj, 'foo');}); env.it('spec 0', function() { expect(jasmineUnderTest.isSpy(testObj.foo)).toBe(true); diff --git a/spec/core/matchers/matchersUtilSpec.js b/spec/core/matchers/matchersUtilSpec.js index 7e74b446..f3948a32 100644 --- a/spec/core/matchers/matchersUtilSpec.js +++ b/spec/core/matchers/matchersUtilSpec.js @@ -145,7 +145,7 @@ describe("matchersUtil", function() { actual = { b: 1 }; expect(jasmineUnderTest.matchersUtil.equals(actual, expected)).toBe(false); - }) + }); it("fails when comparing an empty object to an empty array (issue #114)", function() { var emptyObject = {}, @@ -211,11 +211,11 @@ describe("matchersUtil", function() { return; } var a = document.createElement("div"); - a.setAttribute("test-attr", "attr-value") + a.setAttribute("test-attr", "attr-value"); a.appendChild(document.createTextNode('test')); var b = document.createElement("div"); - b.setAttribute("test-attr", "attr-value2") + b.setAttribute("test-attr", "attr-value2"); b.appendChild(document.createTextNode('test')); expect(jasmineUnderTest.matchersUtil.equals(a,b)).toBe(false); diff --git a/spec/core/matchers/toBeGreaterThanOrEqualSpec.js b/spec/core/matchers/toBeGreaterThanOrEqualSpec.js index 1637f11f..81817c15 100644 --- a/spec/core/matchers/toBeGreaterThanOrEqualSpec.js +++ b/spec/core/matchers/toBeGreaterThanOrEqualSpec.js @@ -14,7 +14,7 @@ describe("toBeGreaterThanOrEqual", function() { result = matcher.compare(1.0, 1.0); expect(result.pass).toBe(true); - }) + }); it("fails when actual < expected", function() { var matcher = jasmineUnderTest.matchers.toBeGreaterThanOrEqual(), diff --git a/spec/core/matchers/toEqualSpec.js b/spec/core/matchers/toEqualSpec.js index e0aaf8d8..6d074f55 100644 --- a/spec/core/matchers/toEqualSpec.js +++ b/spec/core/matchers/toEqualSpec.js @@ -95,7 +95,7 @@ describe("toEqual", function() { expected = {x: {}}, message = "Expected $.x not to have properties\n" + - " y: 'foo bar'" + " y: 'foo bar'"; expect(compareEquals(actual, expected).message).toEqual(message); }); @@ -594,15 +594,15 @@ describe("toEqual", function() { var nodeA = document.createElement('div'), nodeB = document.createElement('div'); - nodeA.innerText = 'foo' - nodeB.innerText = 'bar' + nodeA.innerText = 'foo'; + nodeB.innerText = 'bar'; var actual = {a: nodeA}, expected = {a: nodeB}, message = 'Expected $.a =
...
to equal
...
.'; expect(compareEquals(actual, expected).message).toEqual(message); - }) + }); it("reports mismatches between a DOM node and a bare Object", function() { if(isNotRunningInBrowser()) { @@ -658,7 +658,7 @@ describe("toEqual", function() { boolean: false, notDefined: 0, aNull: void 0 - } + }; var expected = { foo: [ @@ -675,7 +675,7 @@ describe("toEqual", function() { boolean: true, notDefined: void 0, aNull: null - } + }; var message = 'Expected $.foo[0].bar = 1 to equal 2.\n' + @@ -690,10 +690,10 @@ describe("toEqual", function() { 'Expected $.inf = -Infinity to equal Infinity.\n' + 'Expected $.boolean = false to equal true.\n' + 'Expected $.notDefined = 0 to equal undefined.\n' + - 'Expected $.aNull = undefined to equal null.' + 'Expected $.aNull = undefined to equal null.'; expect(compareEquals(actual, expected).message).toEqual(message); - }) + }); describe("different length arrays", function() { it("actual array is longer", function() { @@ -702,7 +702,7 @@ describe("toEqual", function() { message = 'Expected $.length = 5 to equal 4.\n' + 'Expected $[4] = 5 to equal undefined.'; - expect(compareEquals(actual, expected).pass).toBe(false) + expect(compareEquals(actual, expected).pass).toBe(false); expect(compareEquals(actual, expected).message).toEqual(message); }); @@ -712,7 +712,7 @@ describe("toEqual", function() { message = 'Expected $.length = 4 to equal 5.\n' + 'Expected $[4] = undefined to equal 5.'; - expect(compareEquals(actual, expected).pass).toBe(false) + expect(compareEquals(actual, expected).pass).toBe(false); expect(compareEquals(actual, expected).message).toEqual(message); }); @@ -725,7 +725,7 @@ describe("toEqual", function() { 'Expected $[5] = undefined to equal 8.\n' + 'Expected $[6] = undefined to equal 13.'; - expect(compareEquals(actual, expected).pass).toBe(false) + expect(compareEquals(actual, expected).pass).toBe(false); expect(compareEquals(actual, expected).message).toEqual(message); }); @@ -736,7 +736,7 @@ describe("toEqual", function() { 'Expected $[0] = 1 to equal 2.\n' + 'Expected $[1] = undefined to equal 3.'; - expect(compareEquals(actual, expected).pass).toBe(false) + expect(compareEquals(actual, expected).pass).toBe(false); expect(compareEquals(actual, expected).message).toEqual(message); }); @@ -746,7 +746,7 @@ describe("toEqual", function() { message = 'Expected $.values.length = 4 to equal 3.\n' + 'Expected $.values[3] = 3 to equal undefined.'; - expect(compareEquals(actual, expected).pass).toBe(false) + expect(compareEquals(actual, expected).pass).toBe(false); expect(compareEquals(actual, expected).message).toEqual(message); }); @@ -756,7 +756,7 @@ describe("toEqual", function() { message = 'Expected $.length = 4 to equal 3.\n' + 'Expected $[3] = Object({ value: 3 }) to equal undefined.'; - expect(compareEquals(actual, expected).pass).toBe(false) + expect(compareEquals(actual, expected).pass).toBe(false); expect(compareEquals(actual, expected).message).toEqual(message); }); @@ -769,7 +769,7 @@ describe("toEqual", function() { 'Expected $[1][0] = 1 to equal 2.\n' + 'Expected $[1][1] = 2 to equal undefined.'; - expect(compareEquals(actual, expected).pass).toBe(false) + expect(compareEquals(actual, expected).pass).toBe(false); expect(compareEquals(actual, expected).message).toEqual(message); }); @@ -778,7 +778,7 @@ describe("toEqual", function() { expected = [1, 2, void 0], message = 'Expected $.length = 2 to equal 3.'; - expect(compareEquals(actual, expected).pass).toBe(false) + expect(compareEquals(actual, expected).pass).toBe(false); expect(compareEquals(actual, expected).message).toEqual(message); }); }) diff --git a/spec/core/matchers/toHaveClassSpec.js b/spec/core/matchers/toHaveClassSpec.js index fdf4a616..0537c60f 100644 --- a/spec/core/matchers/toHaveClassSpec.js +++ b/spec/core/matchers/toHaveClassSpec.js @@ -4,7 +4,7 @@ describe('toHaveClass', function() { var el = this.doc.createElement('div'); el.className = className; return el; - } + }; if (typeof document !== 'undefined') { this.doc = document; diff --git a/spec/html/HtmlReporterSpec.js b/spec/html/HtmlReporterSpec.js index 1d5a384e..21108fc5 100644 --- a/spec/html/HtmlReporterSpec.js +++ b/spec/html/HtmlReporterSpec.js @@ -1047,7 +1047,7 @@ describe("HtmlReporter", function() { beforeEach(function() { env = new jasmineUnderTest.Env(); container = document.createElement("div"); - var getContainer = function() { return container; } + var getContainer = function() { return container; }; reporter = new jasmineUnderTest.HtmlReporter({ env: env, getContainer: getContainer,