mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-24 12:07:10 -04:00
Clean strings.
This commit is contained in:
parent
88854ad451
commit
41b199c578
7 changed files with 11 additions and 11 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue