Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
applicationType: 'monolith',
databaseType: 'sql',
devDatabaseType: 'h2Disk',
prodDatabaseType: 'mysql',
cacheProvider: 'ehcache',
authenticationType: 'jwt',
enableTranslation: true,
nativeLanguage: 'en',
languages: constants.LANGUAGES.map(el => el.value),
buildTool: 'maven',
clientFramework: 'Vue.js',
clientTheme: 'none'
})
.on('end', done);
});
constants.LANGUAGES.forEach((language) => {
describe(`for ${language.name}`, () => {
it('creates expected files', () => {
assert.file([
`${CLIENT_MAIN_SRC_DIR}i18n/${language.value}/activate.json`,
`${CLIENT_MAIN_SRC_DIR}i18n/${language.value}/audits.json`,
`${CLIENT_MAIN_SRC_DIR}i18n/${language.value}/configuration.json`,
`${CLIENT_MAIN_SRC_DIR}i18n/${language.value}/error.json`,
`${CLIENT_MAIN_SRC_DIR}i18n/${language.value}/login.json`,
`${CLIENT_MAIN_SRC_DIR}i18n/${language.value}/logs.json`,
`${CLIENT_MAIN_SRC_DIR}i18n/${language.value}/home.json`,
`${CLIENT_MAIN_SRC_DIR}i18n/${language.value}/metrics.json`,
`${CLIENT_MAIN_SRC_DIR}i18n/${language.value}/password.json`,
`${CLIENT_MAIN_SRC_DIR}i18n/${language.value}/register.json`,
`${CLIENT_MAIN_SRC_DIR}i18n/${language.value}/sessions.json`,
`${CLIENT_MAIN_SRC_DIR}i18n/${language.value}/settings.json`,
`${CLIENT_MAIN_SRC_DIR}i18n/${language.value}/reset.json`,
'jhipster-vuejs:languages',
path.join(__dirname, '../generators/languages/index.js')
],
])
.withPrompts({
baseName: 'sampleMysql',
packageName: 'com.mycompany.myapp',
applicationType: 'monolith',
databaseType: 'sql',
devDatabaseType: 'h2Disk',
prodDatabaseType: 'mysql',
cacheProvider: 'ehcache',
authenticationType: 'jwt',
enableTranslation: true,
nativeLanguage: 'en',
languages: constants.LANGUAGES.map(el => el.value),
buildTool: 'maven',
clientFramework: 'Vue.js',
clientTheme: 'none'
})
.on('end', done);
});
constants.LANGUAGES.forEach((language) => {