From 41b199c578e5de1cf79b759f7f7f40b2c37d60e7 Mon Sep 17 00:00:00 2001 From: Lars Jung Date: Wed, 22 Apr 2015 23:45:23 +0200 Subject: [PATCH] Clean strings. --- test/tests/unit/core/format.js | 6 +++--- test/tests/unit/core/location.js | 2 +- test/tests/unit/core/util.js | 4 ++-- test/tests/unit/ext/title.js | 2 +- test/tests/unit/main/index.js | 2 +- test/tests/unit/view/content.js | 4 ++-- test/tests/unit/view/viewmode.js | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/test/tests/unit/core/format.js b/test/tests/unit/core/format.js index b21b74a4..7f69c152 100644 --- a/test/tests/unit/core/format.js +++ b/test/tests/unit/core/format.js @@ -112,7 +112,7 @@ describe('module \'' + ID + '\'', function () { var arg = data[0]; var exp = data[1]; - it('.formatSize(' + arg + ') => \'' + exp + '\'', function () { + it(arg + ' => ' + exp, function () { var instance = this.applyFn(); instance.setDefaultMetric(false); @@ -148,7 +148,7 @@ describe('module \'' + ID + '\'', function () { var arg = data[0]; var exp = data[1]; - it('.formatSize(' + arg + ') => \'' + exp + '\'', function () { + it(arg + ' => ' + exp, function () { var instance = this.applyFn(); instance.setDefaultMetric(true); @@ -209,7 +209,7 @@ describe('module \'' + ID + '\'', function () { var arg2 = data[1]; var exp = data[2]; - it('.formatDate(' + arg1 + ', \'' + arg2 + '\') => \'' + exp + '\'', function () { + it(arg1 + ', ' + arg2 + ' => ' + exp, function () { var instance = this.applyFn(); assert.strictEqual(instance.formatDate(arg1, arg2), exp); diff --git a/test/tests/unit/core/location.js b/test/tests/unit/core/location.js index 77b83b64..5f5fbc47 100644 --- a/test/tests/unit/core/location.js +++ b/test/tests/unit/core/location.js @@ -111,7 +111,7 @@ describe('module \'' + ID + '\'', function () { var arg = data[0]; var exp = data[1]; - it('.forceEncoding(\'' + arg + '\') => \'' + exp + '\'', function () { + it(arg + ' => ' + exp, function () { var instance = this.applyFn(); assert.strictEqual(instance.forceEncoding(arg), exp); diff --git a/test/tests/unit/core/util.js b/test/tests/unit/core/util.js index 73a555a8..e31a57a0 100644 --- a/test/tests/unit/core/util.js +++ b/test/tests/unit/core/util.js @@ -81,7 +81,7 @@ describe('module \'' + ID + '\'', function () { var arg2 = data[1]; var exp = data[2]; - it('.regularCmpFn(\'' + arg1 + '\', \'' + arg2 + '\') => \'' + exp + '\'', function () { + it(arg1 + ', ' + arg2 + ' => ' + exp, function () { var instance = this.applyFn(); assert.strictEqual(instance.regularCmpFn(arg1, arg2), exp); @@ -111,7 +111,7 @@ describe('module \'' + ID + '\'', function () { var arg2 = data[1]; var exp = data[2]; - it('.naturalCmpFn(\'' + arg1 + '\', \'' + arg2 + '\') => \'' + exp + '\'', function () { + it(arg1 + ', ' + arg2 + ' => ' + exp, function () { var instance = this.applyFn(); assert.strictEqual(instance.naturalCmpFn(arg1, arg2), exp); diff --git a/test/tests/unit/ext/title.js b/test/tests/unit/ext/title.js index baaed42e..e6375606 100644 --- a/test/tests/unit/ext/title.js +++ b/test/tests/unit/ext/title.js @@ -109,7 +109,7 @@ describe('module \'' + ID + '\'', function () { var labels = data.slice(0, -1); var exp = data.slice(-1)[0]; - it(String(labels) + ' => \'' + exp + '\'', function () { + it(labels + ' => ' + exp, function () { this.xSettings.title.enabled = true; diff --git a/test/tests/unit/main/index.js b/test/tests/unit/main/index.js index a25bf481..54cc98f9 100644 --- a/test/tests/unit/main/index.js +++ b/test/tests/unit/main/index.js @@ -70,7 +70,7 @@ describe('module \'' + ID + '\'', function () { assert.isUndefined(instance); }); - it('publishes "ready" event', function () { + it('publishes ready event', function () { this.applyFn(); assert.isTrue(this.xEvent.pub.calledOnce); diff --git a/test/tests/unit/view/content.js b/test/tests/unit/view/content.js index b54d001d..3f0156bb 100644 --- a/test/tests/unit/view/content.js +++ b/test/tests/unit/view/content.js @@ -110,14 +110,14 @@ describe('module \'' + ID + '\'', function () { assert.isTrue(this.xEvent.sub.calledTwice); }); - it('subscribes to "location.changed"', function () { + it('subscribes to location.changed', function () { this.applyFn(); assert.strictEqual(this.xEvent.sub.firstCall.args[0], 'location.changed'); assert.isFunction(this.xEvent.sub.firstCall.args[1]); }); - it('subscribes to "location.refreshed"', function () { + it('subscribes to location.refreshed', function () { this.applyFn(); assert.strictEqual(this.xEvent.sub.secondCall.args[0], 'location.refreshed'); diff --git a/test/tests/unit/view/viewmode.js b/test/tests/unit/view/viewmode.js index 12d00757..67968aad 100644 --- a/test/tests/unit/view/viewmode.js +++ b/test/tests/unit/view/viewmode.js @@ -105,7 +105,7 @@ describe('module \'' + ID + '\'', function () { assert.isTrue(this.xEvent.sub.calledOnce); }); - it('subscribes to "location.changed"', function () { + it('subscribes to location.changed', function () { this.applyFn(); assert.strictEqual(this.xEvent.sub.firstCall.args[0], 'location.changed');