/* jshint expr:true */ import Mirage from 'ember-cli-mirage'; import destroyApp from '../helpers/destroy-app'; import startApp from '../helpers/start-app'; import {afterEach, beforeEach, describe, it} from 'mocha'; import {authenticateSession} from 'ghost-admin/tests/helpers/ember-simple-auth'; import {expect} from 'chai'; import {versionMismatchResponse} from 'ghost-admin/mirage/utils'; let htmlErrorResponse = function () { return new Mirage.Response( 504, {'Content-Type': 'text/html'}, '