From 0189748c06f70d82a811b7bba9629e29bbf17a81 Mon Sep 17 00:00:00 2001 From: Drew Fyock Date: Tue, 25 Feb 2014 13:05:03 -0800 Subject: [PATCH] spelling and semi-colon fixes --- lib/log.js | 6 +++--- readme.md | 2 +- test/fixtures/async-test.js | 8 ++++---- test/fixtures/testrunner-tests.js | 4 ++-- test/fixtures/uncaught-exception-test.js | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/log.js b/lib/log.js index 663e506..2bae6b0 100644 --- a/lib/log.js +++ b/lib/log.js @@ -225,7 +225,7 @@ function getMet(metric) { print.coverage = function() { var table; - if (!data.coverages.length) return + if (!data.coverages.length) return; table = new Table({ head: ['File', 'Statements', 'Branches', 'Functions', 'Lines'], @@ -242,9 +242,9 @@ print.coverage = function() { print.globalCoverage = function() { var coverage, table; - if (!data.coverages.length) return + if (!data.coverages.length) return; - coverage = exports.stats().coverage + coverage = exports.stats().coverage; table = new Table({ head: ['Files', 'Statements', 'Branches', 'Functions', 'Lines'], colWidths: [8, 14, 14, 14, 14] diff --git a/readme.md b/readme.md index 2e5f6d2..e1774d8 100644 --- a/readme.md +++ b/readme.md @@ -8,7 +8,7 @@ http://github.com/jquery/qunit - cli - testrunner api -- test coverage via instanbul +- test coverage via istanbul - tests inside of one testfile run synchronous, but every testfile runs parallel - tests from each file run in its own spawned node process - same API for client and server side code (original QUnit is used) diff --git a/test/fixtures/async-test.js b/test/fixtures/async-test.js index 66f5bd8..269b172 100644 --- a/test/fixtures/async-test.js +++ b/test/fixtures/async-test.js @@ -1,5 +1,5 @@ test('1', 1, function (){ - ok(true, "tests intermixing sync and async tests #1") + ok(true, "tests intermixing sync and async tests #1"); }); test('a', 2, function(){ @@ -10,10 +10,10 @@ test('a', 2, function(){ ok(true, 'test a2'); start(); }, 10000); -}) +}); test('2', 1, function (){ - ok(true, "tests intermixing sync and async tests #2") + ok(true, "tests intermixing sync and async tests #2"); }); test('b', 2, function(){ @@ -24,4 +24,4 @@ test('b', 2, function(){ ok(true, 'test b2'); start(); }, 10); -}) +}); diff --git a/test/fixtures/testrunner-tests.js b/test/fixtures/testrunner-tests.js index 4a44675..b5b3fc3 100644 --- a/test/fixtures/testrunner-tests.js +++ b/test/fixtures/testrunner-tests.js @@ -1,7 +1,7 @@ test('myMethod test', function() { equal(myMethod(), 123, 'myMethod returns right result'); equal(myMethod(), 321, 'this should trigger an error'); -}) +}); test('myAsyncMethod test', function() { ok(true, 'myAsyncMethod started'); @@ -14,7 +14,7 @@ test('myAsyncMethod test', function() { equal(data, 321, 'this should trigger an error'); start(); }); -}) +}); test('circular reference', function() { equal(global, global, 'test global'); diff --git a/test/fixtures/uncaught-exception-test.js b/test/fixtures/uncaught-exception-test.js index 4ee786b..46cf276 100644 --- a/test/fixtures/uncaught-exception-test.js +++ b/test/fixtures/uncaught-exception-test.js @@ -1 +1 @@ -throw new Error('Some error.') +throw new Error('Some error.');