Clean strings.

This commit is contained in:
Lars Jung 2015-04-22 23:45:23 +02:00
parent 88854ad451
commit 41b199c578
7 changed files with 11 additions and 11 deletions

View file

@ -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);

View file

@ -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);

View file

@ -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);

View file

@ -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;

View file

@ -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);

View file

@ -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');

View file

@ -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');