-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Matt Raible
committed
Nov 24, 2019
1 parent
532ed34
commit 0915089
Showing
10 changed files
with
1,162 additions
and
1,026 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ atlassian-ide-plugin.xml | |
test/temp/ | ||
*debug.log* | ||
.vscode | ||
*.tgz |
Binary file not shown.
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,35 +1,33 @@ | ||
/* global describe, beforeEach, it */ | ||
|
||
const path = require('path'); | ||
const fse = require('fs-extra'); | ||
const assert = require('yeoman-assert'); | ||
const helpers = require('yeoman-test'); | ||
|
||
describe('JHipster generator jhipster-generator-ionic', () => { | ||
describe('Test Generating Ionic App with JWT', () => { | ||
beforeEach((done) => { | ||
helpers | ||
.run(path.join(__dirname, '../generators/app')) | ||
.inTmpDir((dir) => { | ||
fse.copySync(path.join(__dirname, '../test/templates'), dir); | ||
}) | ||
.withOptions({ | ||
interactive: false, | ||
installDeps: false | ||
}) | ||
.withPrompts({ | ||
appName: 'ionic4j-jwt', | ||
directoryPath: 'backend-jwt' | ||
}) | ||
.on('end', done); | ||
}); | ||
describe('Test Generating Ionic App with JWT', () => { | ||
beforeEach((done) => { | ||
helpers | ||
.run(path.join(__dirname, '../generators/app')) | ||
.inTmpDir((dir) => { | ||
fse.copySync(path.join(__dirname, '../test/templates'), dir); | ||
}) | ||
.withOptions({ | ||
interactive: false, | ||
installDeps: false | ||
}) | ||
.withPrompts({ | ||
appName: 'ionic4j-jwt', | ||
directoryPath: 'backend-jwt' | ||
}) | ||
.on('end', done); | ||
}); | ||
|
||
it('generates a ionic4j-jwt/package.json file', () => { | ||
assert.file(['ionic4j-jwt/package.json']); | ||
}); | ||
it('generates a ionic4j-jwt/package.json file', () => { | ||
assert.file(['ionic4j-jwt/package.json']); | ||
}); | ||
|
||
it('does not delete app/services/auth/auth-jwt.service.ts', () => { | ||
assert.file('ionic4j-jwt/src/app/services/auth/auth-jwt.service.ts'); | ||
}); | ||
it('does not delete app/services/auth/auth-jwt.service.ts', () => { | ||
assert.file('ionic4j-jwt/src/app/services/auth/auth-jwt.service.ts'); | ||
}); | ||
}); | ||
}); |
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,42 +1,40 @@ | ||
/* global describe, beforeEach, it */ | ||
|
||
const path = require('path'); | ||
const fse = require('fs-extra'); | ||
const assert = require('yeoman-assert'); | ||
const helpers = require('yeoman-test'); | ||
|
||
describe('JHipster generator jhipster-generator-ionic', () => { | ||
describe('Test Generating Ionic App with OAuth', () => { | ||
beforeEach((done) => { | ||
helpers | ||
.run(path.join(__dirname, '../generators/app')) | ||
.inTmpDir((dir) => { | ||
fse.copySync(path.join(__dirname, '../test/templates'), dir); | ||
}) | ||
.withOptions({ | ||
interactive: false, | ||
installDeps: false | ||
}) | ||
.withPrompts({ | ||
appName: 'ionic4j-oauth2', | ||
directoryPath: 'backend-oauth2' | ||
}) | ||
.on('end', done); | ||
}); | ||
describe('Test Generating Ionic App with OAuth', () => { | ||
beforeEach((done) => { | ||
helpers | ||
.run(path.join(__dirname, '../generators/app')) | ||
.inTmpDir((dir) => { | ||
fse.copySync(path.join(__dirname, '../test/templates'), dir); | ||
}) | ||
.withOptions({ | ||
interactive: false, | ||
installDeps: false | ||
}) | ||
.withPrompts({ | ||
appName: 'ionic4j-oauth2', | ||
directoryPath: 'backend-oauth2' | ||
}) | ||
.on('end', done); | ||
}); | ||
|
||
it('deletes files that only apply to JWT', () => { | ||
assert.noFile([ | ||
'ionic4j-oauth2/src/app/login', | ||
'ionic4j-oauth2/src/app/tab1', | ||
'ionic4j-oauth2/src/app/pages/signup', | ||
'ionic4j-oauth2/src/app/services/auth/auth-jwt.service.ts', | ||
'ionic4j-oauth2/src/app/services/auth/auth-jwt.service.spec.ts' | ||
]); | ||
}); | ||
it('deletes files that only apply to JWT', () => { | ||
assert.noFile([ | ||
'ionic4j-oauth2/src/app/login', | ||
'ionic4j-oauth2/src/app/tab1', | ||
'ionic4j-oauth2/src/app/pages/signup', | ||
'ionic4j-oauth2/src/app/services/auth/auth-jwt.service.ts', | ||
'ionic4j-oauth2/src/app/services/auth/auth-jwt.service.spec.ts' | ||
]); | ||
}); | ||
|
||
it('adds @oktadev/schematics and keeps cordova-plugin-camera', () => { | ||
assert.fileContent('ionic4j-oauth2/package.json', /@oktadev\/schematics/); | ||
assert.fileContent('ionic4j-oauth2/package.json', /CAMERA_USAGE_DESCRIPTION/); | ||
}); | ||
it('adds @oktadev/schematics and keeps cordova-plugin-camera', () => { | ||
assert.fileContent('ionic4j-oauth2/package.json', /@oktadev\/schematics/); | ||
assert.fileContent('ionic4j-oauth2/package.json', /CAMERA_USAGE_DESCRIPTION/); | ||
}); | ||
}); | ||
}); |