mirror of
https://github.com/TryGhost/Ghost-Admin.git
synced 2023-12-14 02:33:04 +01:00
deps: ember-cli@1.13.13
This commit is contained in:
parent
17b3ced8c9
commit
0e04b62640
10 changed files with 58 additions and 30 deletions
|
@ -1,3 +1,3 @@
|
||||||
{
|
{
|
||||||
"ignore_dirs": ["tmp"]
|
"ignore_dirs": ["tmp", "dist"]
|
||||||
}
|
}
|
||||||
|
|
10
bower.json
10
bower.json
|
@ -5,12 +5,12 @@
|
||||||
"codemirror": "5.2.0",
|
"codemirror": "5.2.0",
|
||||||
"devicejs": "0.2.7",
|
"devicejs": "0.2.7",
|
||||||
"ember": "1.13.10",
|
"ember": "1.13.10",
|
||||||
"ember-cli-shims": "ember-cli/ember-cli-shims#0.0.3",
|
"ember-cli-shims": "0.0.6",
|
||||||
"ember-cli-test-loader": "0.1.3",
|
"ember-cli-test-loader": "0.2.1",
|
||||||
"ember-data": "1.13.13",
|
"ember-data": "1.13.13",
|
||||||
"ember-mocha": "0.8.6",
|
"ember-mocha": "0.8.6",
|
||||||
"ember-load-initializers": "ember-cli/ember-load-initializers#0.1.5",
|
"ember-load-initializers": "0.1.7",
|
||||||
"ember-resolver": "0.1.18",
|
"ember-resolver": "0.1.20",
|
||||||
"es5-shim": "4.2.0",
|
"es5-shim": "4.2.0",
|
||||||
"Faker": "3.0.1",
|
"Faker": "3.0.1",
|
||||||
"fastclick": "1.0.6",
|
"fastclick": "1.0.6",
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
"jqueryui-touch-punch": "furf/jquery-ui-touch-punch#4bc009145202d9c7483ba85f3a236a8f3470354d",
|
"jqueryui-touch-punch": "furf/jquery-ui-touch-punch#4bc009145202d9c7483ba85f3a236a8f3470354d",
|
||||||
"jquery.simulate.drag-sortable": "0.1.0",
|
"jquery.simulate.drag-sortable": "0.1.0",
|
||||||
"keymaster": "1.6.3",
|
"keymaster": "1.6.3",
|
||||||
"loader.js": "3.2.1",
|
"loader.js": "ember-cli/loader.js#3.4.0",
|
||||||
"lodash": "~3.7.0",
|
"lodash": "~3.7.0",
|
||||||
"moment": "2.10.3",
|
"moment": "2.10.3",
|
||||||
"normalize.css": "3.0.3",
|
"normalize.css": "3.0.3",
|
||||||
|
|
25
package.json
25
package.json
|
@ -19,33 +19,34 @@
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"broccoli-asset-rev": "^2.1.2",
|
"broccoli-asset-rev": "2.2.0",
|
||||||
"ember-cli": "1.13.8",
|
"ember-cli": "1.13.13",
|
||||||
"ember-cli-app-version": "0.5.0",
|
"ember-cli-app-version": "1.0.0",
|
||||||
"ember-cli-babel": "^5.1.3",
|
"ember-cli-babel": "5.1.5",
|
||||||
"ember-cli-content-security-policy": "0.4.0",
|
"ember-cli-content-security-policy": "0.4.0",
|
||||||
"ember-cli-dependency-checker": "^1.0.1",
|
"ember-cli-dependency-checker": "1.1.0",
|
||||||
"ember-cli-es5-shim": "0.1.1",
|
"ember-cli-es5-shim": "0.1.1",
|
||||||
"ember-cli-fastclick": "1.0.3",
|
"ember-cli-fastclick": "1.0.3",
|
||||||
"ember-cli-htmlbars": "0.7.9",
|
"ember-cli-htmlbars": "1.0.1",
|
||||||
"ember-cli-htmlbars-inline-precompile": "^0.2.0",
|
"ember-cli-htmlbars-inline-precompile": "0.3.1",
|
||||||
"ember-cli-ic-ajax": "0.2.1",
|
"ember-cli-ic-ajax": "0.2.4",
|
||||||
"ember-cli-inject-live-reload": "^1.3.1",
|
"ember-cli-inject-live-reload": "^1.3.1",
|
||||||
"ember-cli-mirage": "0.1.9",
|
"ember-cli-mirage": "0.1.9",
|
||||||
"ember-cli-mocha": "0.9.3",
|
"ember-cli-mocha": "0.9.3",
|
||||||
"ember-cli-pretender": "0.5.0",
|
"ember-cli-pretender": "0.5.0",
|
||||||
"ember-cli-release": "0.2.3",
|
"ember-cli-release": "0.2.8",
|
||||||
"ember-cli-selectize": "0.4.0",
|
"ember-cli-selectize": "0.4.0",
|
||||||
"ember-cli-sri": "^1.0.3",
|
"ember-cli-sri": "1.2.0",
|
||||||
"ember-cli-uglify": "^1.2.0",
|
"ember-cli-uglify": "^1.2.0",
|
||||||
"ember-data": "1.13.13",
|
"ember-data": "1.13.13",
|
||||||
"ember-data-filter": "1.13.0",
|
"ember-data-filter": "1.13.0",
|
||||||
"ember-disable-proxy-controllers": "^1.0.0",
|
"ember-disable-proxy-controllers": "1.0.1",
|
||||||
"ember-export-application-global": "^1.0.3",
|
"ember-export-application-global": "1.0.4",
|
||||||
"ember-myth": "0.1.1",
|
"ember-myth": "0.1.1",
|
||||||
"ember-simple-auth": "1.0.0",
|
"ember-simple-auth": "1.0.0",
|
||||||
"ember-sinon": "0.2.1",
|
"ember-sinon": "0.2.1",
|
||||||
"ember-suave": "1.2.2",
|
"ember-suave": "1.2.2",
|
||||||
|
"ember-watson": "0.7.0",
|
||||||
"fs-extra": "0.16.3",
|
"fs-extra": "0.16.3",
|
||||||
"glob": "^4.0.5",
|
"glob": "^4.0.5",
|
||||||
"walk-sync": "^0.1.3"
|
"walk-sync": "^0.1.3"
|
||||||
|
|
|
@ -8,12 +8,11 @@ import {
|
||||||
import { expect } from 'chai';
|
import { expect } from 'chai';
|
||||||
import Ember from 'ember';
|
import Ember from 'ember';
|
||||||
import startApp from '../helpers/start-app';
|
import startApp from '../helpers/start-app';
|
||||||
|
import destroyApp from '../helpers/destroy-app';
|
||||||
import { authenticateSession, currentSession, invalidateSession } from 'ghost/tests/helpers/ember-simple-auth';
|
import { authenticateSession, currentSession, invalidateSession } from 'ghost/tests/helpers/ember-simple-auth';
|
||||||
import Mirage from 'ember-cli-mirage';
|
import Mirage from 'ember-cli-mirage';
|
||||||
import windowProxy from 'ghost/utils/window-proxy';
|
import windowProxy from 'ghost/utils/window-proxy';
|
||||||
|
|
||||||
const {run} = Ember;
|
|
||||||
|
|
||||||
describe('Acceptance: Authentication', function () {
|
describe('Acceptance: Authentication', function () {
|
||||||
let application,
|
let application,
|
||||||
originalReplaceLocation;
|
originalReplaceLocation;
|
||||||
|
@ -23,7 +22,7 @@ describe('Acceptance: Authentication', function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(function () {
|
afterEach(function () {
|
||||||
run(application, 'destroy');
|
destroyApp(application);
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('general page', function () {
|
describe('general page', function () {
|
||||||
|
|
|
@ -7,12 +7,10 @@ import {
|
||||||
afterEach
|
afterEach
|
||||||
} from 'mocha';
|
} from 'mocha';
|
||||||
import { expect } from 'chai';
|
import { expect } from 'chai';
|
||||||
import Ember from 'ember';
|
|
||||||
import startApp from '../../helpers/start-app';
|
import startApp from '../../helpers/start-app';
|
||||||
|
import destroyApp from '../../helpers/destroy-app';
|
||||||
import { invalidateSession, authenticateSession } from 'ghost/tests/helpers/ember-simple-auth';
|
import { invalidateSession, authenticateSession } from 'ghost/tests/helpers/ember-simple-auth';
|
||||||
|
|
||||||
const {run} = Ember;
|
|
||||||
|
|
||||||
describe('Acceptance: Settings - Navigation', function () {
|
describe('Acceptance: Settings - Navigation', function () {
|
||||||
let application;
|
let application;
|
||||||
|
|
||||||
|
@ -21,7 +19,7 @@ describe('Acceptance: Settings - Navigation', function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(function () {
|
afterEach(function () {
|
||||||
run(application, 'destroy');
|
destroyApp(application);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('redirects to signin when not authenticated', function () {
|
it('redirects to signin when not authenticated', function () {
|
||||||
|
|
|
@ -9,6 +9,7 @@ import {
|
||||||
import { expect } from 'chai';
|
import { expect } from 'chai';
|
||||||
import Ember from 'ember';
|
import Ember from 'ember';
|
||||||
import startApp from '../../helpers/start-app';
|
import startApp from '../../helpers/start-app';
|
||||||
|
import destroyApp from '../../helpers/destroy-app';
|
||||||
import { invalidateSession, authenticateSession } from 'ghost/tests/helpers/ember-simple-auth';
|
import { invalidateSession, authenticateSession } from 'ghost/tests/helpers/ember-simple-auth';
|
||||||
|
|
||||||
const {run} = Ember;
|
const {run} = Ember;
|
||||||
|
@ -48,7 +49,7 @@ describe('Acceptance: Settings - Tags', function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(function () {
|
afterEach(function () {
|
||||||
run(application, 'destroy');
|
destroyApp(application);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('redirects to signin when not authenticated', function () {
|
it('redirects to signin when not authenticated', function () {
|
||||||
|
|
|
@ -8,11 +8,10 @@ import {
|
||||||
import { expect } from 'chai';
|
import { expect } from 'chai';
|
||||||
import Ember from 'ember';
|
import Ember from 'ember';
|
||||||
import startApp from 'ghost/tests/helpers/start-app';
|
import startApp from 'ghost/tests/helpers/start-app';
|
||||||
|
import destroyApp from 'ghost/tests/helpers/destroy-app';
|
||||||
import { invalidateSession, authenticateSession } from 'ghost/tests/helpers/ember-simple-auth';
|
import { invalidateSession, authenticateSession } from 'ghost/tests/helpers/ember-simple-auth';
|
||||||
import Mirage from 'ember-cli-mirage';
|
import Mirage from 'ember-cli-mirage';
|
||||||
|
|
||||||
const {run} = Ember;
|
|
||||||
|
|
||||||
describe('Acceptance: Setup', function () {
|
describe('Acceptance: Setup', function () {
|
||||||
let application;
|
let application;
|
||||||
|
|
||||||
|
@ -21,7 +20,7 @@ describe('Acceptance: Setup', function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(function () {
|
afterEach(function () {
|
||||||
run(application, 'destroy');
|
destroyApp(application);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('redirects if already authenticated', function () {
|
it('redirects if already authenticated', function () {
|
||||||
|
|
5
tests/helpers/destroy-app.js
Normal file
5
tests/helpers/destroy-app.js
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
import Ember from 'ember';
|
||||||
|
|
||||||
|
export default function destroyApp(application) {
|
||||||
|
Ember.run(application, 'destroy');
|
||||||
|
}
|
23
tests/helpers/module-for-acceptance.js
Normal file
23
tests/helpers/module-for-acceptance.js
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
import { module } from 'qunit';
|
||||||
|
import startApp from '../helpers/start-app';
|
||||||
|
import destroyApp from '../helpers/destroy-app';
|
||||||
|
|
||||||
|
export default function (name, options = {}) {
|
||||||
|
module(name, {
|
||||||
|
beforeEach() {
|
||||||
|
this.application = startApp();
|
||||||
|
|
||||||
|
if (options.beforeEach) {
|
||||||
|
options.beforeEach.apply(this, arguments);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
afterEach() {
|
||||||
|
destroyApp(this.application);
|
||||||
|
|
||||||
|
if (options.afterEach) {
|
||||||
|
options.afterEach.apply(this, arguments);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
|
@ -39,10 +39,12 @@
|
||||||
|
|
||||||
{{content-for 'body'}}
|
{{content-for 'body'}}
|
||||||
{{content-for 'test-body'}}
|
{{content-for 'test-body'}}
|
||||||
|
|
||||||
<script src="assets/vendor.js"></script>
|
<script src="assets/vendor.js"></script>
|
||||||
<script src="assets/test-support.js"></script>
|
<script src="assets/test-support.js"></script>
|
||||||
<script src="assets/ghost.js"></script>
|
<script src="assets/ghost.js"></script>
|
||||||
<script src="testem.js"></script>
|
<script src="testem.js" integrity=""></script>
|
||||||
|
<script src="assets/tests.js"></script>
|
||||||
<script src="assets/test-loader.js"></script>
|
<script src="assets/test-loader.js"></script>
|
||||||
|
|
||||||
{{content-for 'body-footer'}}
|
{{content-for 'body-footer'}}
|
||||||
|
|
Loading…
Reference in a new issue