mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-15 02:14:06 +02:00
Restructure file base.
This commit is contained in:
@@ -111,7 +111,7 @@ describe('module \'' + ID + '\'', function () {
|
||||
this.applyFn();
|
||||
|
||||
assert.isTrue(this.xAjax.calledOnce);
|
||||
assert.strictEqual(this.xAjax.lastCall.args[0].url, 'server/php/index.php');
|
||||
assert.strictEqual(this.xAjax.lastCall.args[0].url, 'index.php');
|
||||
assert.strictEqual(this.xAjax.lastCall.args[0].type, 'post');
|
||||
assert.strictEqual(this.xAjax.lastCall.args[0].dataType, 'json');
|
||||
|
||||
|
@@ -77,7 +77,7 @@ describe('module \'' + ID + '\'', function () {
|
||||
it('works', function () {
|
||||
|
||||
var instance = this.applyFn();
|
||||
var ui = this.xSettings.appHref + 'client/images/ui/';
|
||||
var ui = this.xSettings.appHref + 'public/images/ui/';
|
||||
|
||||
assert.strictEqual(instance.image(), ui + 'undefined.svg');
|
||||
assert.strictEqual(instance.image(1), ui + '1.svg');
|
||||
@@ -97,7 +97,7 @@ describe('module \'' + ID + '\'', function () {
|
||||
it('works', function () {
|
||||
|
||||
var instance = this.applyFn();
|
||||
var themes = this.xSettings.appHref + 'client/images/themes/';
|
||||
var themes = this.xSettings.appHref + 'public/images/themes/';
|
||||
|
||||
assert.strictEqual(instance.icon(''), themes + 'default/file.svg');
|
||||
assert.strictEqual(instance.icon('a'), themes + 'myTheme/a.svg');
|
||||
|
@@ -138,7 +138,7 @@ describe('module \'' + ID + '\'', function () {
|
||||
$('#login').trigger('click');
|
||||
assert.isTrue(this.xAjax.calledOnce);
|
||||
assert.deepEqual(this.xAjax.lastCall.args, [{
|
||||
url: 'server/php/index.php',
|
||||
url: 'index.php',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
@@ -193,7 +193,7 @@ describe('module \'' + ID + '\'', function () {
|
||||
$('#logout').trigger('click');
|
||||
assert.isTrue(this.xAjax.calledOnce);
|
||||
assert.deepEqual(this.xAjax.lastCall.args, [{
|
||||
url: 'server/php/index.php',
|
||||
url: 'index.php',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
|
Reference in New Issue
Block a user