1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00

Merge pull request #39 from kevinansfield/version-header-fixes

Minor version header fixes
This commit is contained in:
Hannah Wolfe 2016-06-03 15:16:33 +01:00
commit f0af686c6d
2 changed files with 1 additions and 2 deletions

View file

@ -21,7 +21,7 @@ module.exports = function (environment) {
// override the default version string which contains git info from
// https://github.com/cibernox/git-repo-version. Only include the
// `major.minor` version numbers
version: require('../package.json').version.replace(/\.\d+$/, '')
version: require('../package.json').version.match(/^(\d+\.)?(\d+)/)[0]
},
'ember-simple-auth': {

View file

@ -37,7 +37,6 @@ describeModule(
store.find('post', 1).catch(() => {
let [request] = server.handledRequests;
console.log(request);
expect(request.requestHeaders['X-Ghost-Version']).to.equal(version);
done();
});