mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-08 14:56:35 +02:00
Clean code.
This commit is contained in:
@@ -112,7 +112,7 @@ describe('module \'' + ID + '\'', function () {
|
||||
|
||||
assert.isTrue(this.xAjax.calledOnce);
|
||||
assert.strictEqual(this.xAjax.lastCall.args[0].url, 'server/php/index.php');
|
||||
assert.strictEqual(this.xAjax.lastCall.args[0].type, 'POST');
|
||||
assert.strictEqual(this.xAjax.lastCall.args[0].type, 'post');
|
||||
assert.strictEqual(this.xAjax.lastCall.args[0].dataType, 'json');
|
||||
|
||||
assert.isTrue(this.xAjaxResult.done.calledOnce);
|
||||
@@ -134,7 +134,7 @@ describe('module \'' + ID + '\'', function () {
|
||||
|
||||
assert.isTrue(this.xAjax.calledOnce);
|
||||
assert.strictEqual(this.xAjax.lastCall.args[0].url, '.');
|
||||
assert.strictEqual(this.xAjax.lastCall.args[0].type, 'POST');
|
||||
assert.strictEqual(this.xAjax.lastCall.args[0].type, 'post');
|
||||
assert.strictEqual(this.xAjax.lastCall.args[0].dataType, 'json');
|
||||
|
||||
assert.isTrue(this.xAjaxResult.done.calledOnce);
|
||||
|
@@ -200,7 +200,7 @@ describe('module \'' + ID + '\'', function () {
|
||||
assert.deepEqual(this.xAjax.lastCall.args, [{
|
||||
url: this.xAbsHref,
|
||||
data: xData,
|
||||
type: 'POST',
|
||||
type: 'post',
|
||||
dataType: 'json'
|
||||
}]);
|
||||
assert.isTrue(this.xAjaxResult.done.calledOnce);
|
||||
@@ -229,7 +229,7 @@ describe('module \'' + ID + '\'', function () {
|
||||
assert.deepEqual(this.xAjax.lastCall.args, [{
|
||||
url: this.xAbsHref,
|
||||
data: xData,
|
||||
type: 'POST',
|
||||
type: 'post',
|
||||
dataType: 'json'
|
||||
}]);
|
||||
assert.isTrue(this.xAjaxResult.done.calledOnce);
|
||||
|
@@ -139,8 +139,8 @@ describe('module \'' + ID + '\'', function () {
|
||||
assert.isTrue(this.xAjax.calledOnce);
|
||||
assert.deepEqual(this.xAjax.lastCall.args, [{
|
||||
url: 'server/php/index.php',
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
action: 'login',
|
||||
pass: pass
|
||||
@@ -194,8 +194,8 @@ describe('module \'' + ID + '\'', function () {
|
||||
assert.isTrue(this.xAjax.calledOnce);
|
||||
assert.deepEqual(this.xAjax.lastCall.args, [{
|
||||
url: 'server/php/index.php',
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
action: 'logout'
|
||||
}
|
||||
|
Reference in New Issue
Block a user