-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #295 from nlfurniss/upgrade-ember-cli-babel
- Loading branch information
Showing
6 changed files
with
1,552 additions
and
925 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,15 +21,14 @@ | |
"index.js" | ||
], | ||
"engines": { | ||
"node": "6.* || 8.* || >= 10.*" | ||
"node": ">= 10.*" | ||
}, | ||
"author": "Taras Mankovski <[email protected]>", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"ember-cli": "~3.9.0", | ||
"ember-cli-dependency-checker": "^3.2.0", | ||
"ember-cli-htmlbars": "^3.1.0", | ||
"ember-cli-htmlbars-inline-precompile": "^2.0.0", | ||
"ember-cli-htmlbars": "^5.3.1", | ||
"ember-cli-inject-live-reload": "^2.0.1", | ||
"ember-cli-qunit": "^4.3.2", | ||
"ember-cli-shims": "^1.2.0", | ||
|
@@ -38,7 +37,7 @@ | |
"ember-load-initializers": "^2.0.0", | ||
"ember-maybe-import-regenerator": "^0.1.6", | ||
"ember-resolver": "^5.2.0", | ||
"ember-source": "~3.11.1", | ||
"ember-source": "3.21.1", | ||
"ember-source-channel-url": "^1.0.1", | ||
"ember-try": "^1.2.1", | ||
"eslint": "^5.16.0", | ||
|
@@ -50,7 +49,7 @@ | |
"ember-addon" | ||
], | ||
"dependencies": { | ||
"ember-cli-babel": "^6.12.0", | ||
"ember-cli-babel": "^7.0.0", | ||
"git-repo-info": "^2.1.0" | ||
}, | ||
"ember-addon": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,56 @@ | ||
import { moduleForComponent, test } from 'ember-qunit'; | ||
import hbs from 'htmlbars-inline-precompile'; | ||
import { module, test } from 'qunit'; | ||
import { setupRenderingTest } from 'ember-qunit'; | ||
import { render } from '@ember/test-helpers'; | ||
import { hbs } from 'ember-cli-htmlbars'; | ||
|
||
moduleForComponent('Integration | Helper | {{app-version}}', { | ||
integration: true | ||
}); | ||
module('Integration | Helper | {{app-version}}', function(hooks) { | ||
setupRenderingTest(hooks); | ||
|
||
test('it displays entire version', function(assert) { | ||
assert.expect(1); | ||
test('it displays entire version', async function(assert) { | ||
assert.expect(1); | ||
|
||
this.render(hbs`{{app-version}}`); | ||
await render(hbs`{{app-version}}`); | ||
|
||
assert.ok(this.$().text(), 'Version not empty'); | ||
}); | ||
assert.ok(this.$().text(), 'Version not empty'); | ||
}); | ||
|
||
test('it displays only app version (backwards compatible)', function(assert) { | ||
assert.expect(1); | ||
test('it displays only app version (backwards compatible)', async function(assert) { | ||
assert.expect(1); | ||
|
||
this.render(hbs`{{app-version hideSha=true}}`); | ||
await render(hbs`{{app-version hideSha=true}}`); | ||
|
||
assert.ok(this.$().text(), 'Version not empty'); | ||
}); | ||
assert.ok(this.$().text(), 'Version not empty'); | ||
}); | ||
|
||
test('it displays only app version', function(assert) { | ||
assert.expect(1); | ||
test('it displays only app version', async function(assert) { | ||
assert.expect(1); | ||
|
||
this.render(hbs`{{app-version versionOnly=true}}`); | ||
await render(hbs`{{app-version versionOnly=true}}`); | ||
|
||
assert.ok(this.$().text(), 'Version not empty'); | ||
}); | ||
assert.ok(this.$().text(), 'Version not empty'); | ||
}); | ||
|
||
test('it displays only app version extended', function(assert) { | ||
assert.expect(1); | ||
test('it displays only app version extended', async function(assert) { | ||
assert.expect(1); | ||
|
||
this.render(hbs`{{app-version versionOnly=true showExtended=true}}`); | ||
await render(hbs`{{app-version versionOnly=true showExtended=true}}`); | ||
|
||
assert.ok(this.$().text(), 'Version not empty'); | ||
}); | ||
assert.ok(this.$().text(), 'Version not empty'); | ||
}); | ||
|
||
test('it displays only git sha (backwards compatible)', function(assert) { | ||
assert.expect(1); | ||
test('it displays only git sha (backwards compatible)', async function(assert) { | ||
assert.expect(1); | ||
|
||
this.render(hbs`{{app-version hideVersion=true}}`); | ||
await render(hbs`{{app-version hideVersion=true}}`); | ||
|
||
assert.ok(this.$().text(), 'Version not empty'); | ||
}); | ||
assert.ok(this.$().text(), 'Version not empty'); | ||
}); | ||
|
||
test('it displays only git sha', function(assert) { | ||
assert.expect(1); | ||
test('it displays only git sha', async function(assert) { | ||
assert.expect(1); | ||
|
||
this.render(hbs`{{app-version shaOnly=true}}`); | ||
await render(hbs`{{app-version shaOnly=true}}`); | ||
|
||
assert.ok(this.$().text(), 'Version not empty'); | ||
assert.ok(this.$().text(), 'Version not empty'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
import { module, test } from 'qunit'; | ||
import { shaRegExp, versionRegExp, versionExtendedRegExp } from 'ember-cli-app-version/utils/regexp'; | ||
|
||
module('Unit | Utility | regexp'); | ||
module('Unit | Utility | regexp', function() { | ||
test('version reg ex matches expected strings', function(assert) { | ||
assert.expect(4); | ||
|
||
test('version reg ex matches expected strings', function(assert) { | ||
assert.expect(4); | ||
assert.ok('2.0.1'.match(versionRegExp), 'Matches expected pattern.'); | ||
assert.ok('2.20.1'.match(versionRegExp), 'Matches expected pattern.'); | ||
assert.ok(!'a.b.c'.match(versionRegExp), 'Does not match letters.'); | ||
assert.ok(!'git12sha'.match(versionRegExp), 'Does not match sha.'); | ||
}); | ||
|
||
assert.ok('2.0.1'.match(versionRegExp), 'Matches expected pattern.'); | ||
assert.ok('2.20.1'.match(versionRegExp), 'Matches expected pattern.'); | ||
assert.ok(!'a.b.c'.match(versionRegExp), 'Does not match letters.'); | ||
assert.ok(!'git12sha'.match(versionRegExp), 'Does not match sha.'); | ||
}); | ||
|
||
test('version extended reg ex matches expected strings', function(assert) { | ||
assert.expect(4); | ||
test('version extended reg ex matches expected strings', function(assert) { | ||
assert.expect(4); | ||
|
||
assert.ok('2.0.1-alpha'.match(versionExtendedRegExp), 'Matches expected pattern.'); | ||
assert.ok('2.20.1-alpha.15'.match(versionExtendedRegExp), 'Matches expected pattern.'); | ||
assert.ok(!'a.b.c-alpha.15'.match(versionExtendedRegExp), 'Does not match letters.'); | ||
assert.ok(!'git12sha'.match(versionExtendedRegExp), 'Does not match sha.'); | ||
}); | ||
assert.ok('2.0.1-alpha'.match(versionExtendedRegExp), 'Matches expected pattern.'); | ||
assert.ok('2.20.1-alpha.15'.match(versionExtendedRegExp), 'Matches expected pattern.'); | ||
assert.ok(!'a.b.c-alpha.15'.match(versionExtendedRegExp), 'Does not match letters.'); | ||
assert.ok(!'git12sha'.match(versionExtendedRegExp), 'Does not match sha.'); | ||
}); | ||
|
||
test('git sha reg ex matches expected strings', function(assert) { | ||
assert.expect(4); | ||
test('git sha reg ex matches expected strings', function(assert) { | ||
assert.expect(4); | ||
|
||
assert.ok('git12sha'.match(shaRegExp), 'Matches expected pattern.'); | ||
assert.ok(!'2.0.1'.match(shaRegExp), 'Does not match version pattern.'); | ||
assert.ok(!'2.0.1-alpha.15'.match(shaRegExp), 'Does not match version extended pattern.'); | ||
assert.ok(!'2.0.1-alphaabc.15'.match(shaRegExp), 'Does not match version extended pattern (with 8 chars in tag name).'); | ||
assert.ok('git12sha'.match(shaRegExp), 'Matches expected pattern.'); | ||
assert.ok(!'2.0.1'.match(shaRegExp), 'Does not match version pattern.'); | ||
assert.ok(!'2.0.1-alpha.15'.match(shaRegExp), 'Does not match version extended pattern.'); | ||
assert.ok(!'2.0.1-alphaabc.15'.match(shaRegExp), 'Does not match version extended pattern (with 8 chars in tag name).'); | ||
}); | ||
}); |
Oops, something went wrong.