1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-20 12:21:35 +02:00

Rename variables

This commit is contained in:
XhmikosR
2021-10-29 10:38:35 +03:00
parent 3ac4451d47
commit 62d86c07f8
15 changed files with 115 additions and 115 deletions

View File

@@ -50,7 +50,7 @@ const detectBrowsers = {
}
}
const conf = {
const config = {
basePath: '../..',
port: 9876,
colors: true,
@@ -101,8 +101,8 @@ const conf = {
}
if (BROWSERSTACK) {
conf.hostname = ip.address()
conf.browserStack = {
config.hostname = ip.address()
config.browserStack = {
username: ENV.BROWSER_STACK_USERNAME,
accessKey: ENV.BROWSER_STACK_ACCESS_KEY,
build: `bootstrap-${ENV.GITHUB_SHA ? ENV.GITHUB_SHA.slice(0, 7) + '-' : ''}${new Date().toISOString()}`,
@@ -110,8 +110,8 @@ if (BROWSERSTACK) {
retryLimit: 2
}
plugins.push('karma-browserstack-launcher', 'karma-jasmine-html-reporter')
conf.customLaunchers = browsers
conf.browsers = Object.keys(browsers)
config.customLaunchers = browsers
config.browsers = Object.keys(browsers)
reporters.push('BrowserStack', 'kjhtml')
} else if (JQUERY_TEST) {
frameworks.push('detectBrowsers')
@@ -120,8 +120,8 @@ if (BROWSERSTACK) {
'karma-firefox-launcher',
'karma-detect-browsers'
)
conf.detectBrowsers = detectBrowsers
conf.files = [
config.detectBrowsers = detectBrowsers
config.files = [
'node_modules/jquery/dist/jquery.slim.min.js',
{
pattern: 'js/tests/unit/jquery.spec.js',
@@ -137,8 +137,8 @@ if (BROWSERSTACK) {
'karma-coverage-istanbul-reporter'
)
reporters.push('coverage-istanbul')
conf.detectBrowsers = detectBrowsers
conf.coverageIstanbulReporter = {
config.detectBrowsers = detectBrowsers
config.coverageIstanbulReporter = {
dir: path.resolve(__dirname, '../coverage/'),
reports: ['lcov', 'text-summary'],
thresholds: {
@@ -153,19 +153,19 @@ if (BROWSERSTACK) {
}
if (DEBUG) {
conf.hostname = ip.address()
config.hostname = ip.address()
plugins.push('karma-jasmine-html-reporter')
reporters.push('kjhtml')
conf.singleRun = false
conf.autoWatch = true
config.singleRun = false
config.autoWatch = true
}
}
conf.frameworks = frameworks
conf.plugins = plugins
conf.reporters = reporters
config.frameworks = frameworks
config.plugins = plugins
config.reporters = reporters
module.exports = karmaConfig => {
conf.logLevel = karmaConfig.LOG_ERROR
karmaConfig.set(conf)
config.logLevel = karmaConfig.LOG_ERROR
karmaConfig.set(config)
}