1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00
Ghost-Admin/mirage/fixtures/configurations.js
Kevin Ansfield ec78939910 Fix tests when run via http://localhost:4200/tests (#609)
* deps: ember-cli-node-assets@0.2.2

* fix tests when run via http://localhost:4200/tests

no issue
- `blogUrl` in the mocked config was hardcoded, switching to using the current origin fixed the navigation tests
- we were only pulling jquery drag simulator library in on test builds but we also need it added to `test-support.js` in development builds
- lazy loading is disabled in the test env which previously worked fine as all of the codemirror assets are bundled into the test build, now that we also run tests using the development build we needed to update the config to import codemirror assets into the `test-support.js` file - this ensures that we have normal lazy-loading behaviour when developing locally and that accessing via http://localhost:4200/tests doesn't die horribly due to missing dependencies
2017-03-30 20:51:50 +01:00

21 lines
573 B
JavaScript

export default [{
blogTitle: 'Test Blog',
blogUrl: `${window.location.origin}/`,
clientId: 'ghost-admin',
clientSecret: '1234ClientSecret',
fileStorage: 'true',
// these are valid attrs but we want password auth by default in tests
// ghostAuthId: '1234GhostAuthId',
// ghostAuthUrl: 'http://devauth.ghost.org:8080',
internalTags: 'false',
publicAPI: 'false',
routeKeywords: {
tag: 'tag',
author: 'author',
page: 'page',
preview: 'p',
private: 'private'
},
useGravatar: 'true'
}];