Commit d2c4018b authored by kang.nie@inzymeits.com's avatar kang.nie@inzymeits.com
Browse files

初始化代码

parent de8a8ae5
Pipeline #3105 failed with stages
in 0 seconds
<?xml version="1.0" encoding="UTF-8"?>
<svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>ico_步骤@2x</title>
<g id="车企实名制系统" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="一车多卡绑定-客户确认" transform="translate(-272.000000, -283.000000)" fill="#768093">
<g id="编组-15" transform="translate(240.000000, 262.000000)">
<g id="编组-7" transform="translate(32.000000, 21.000000)">
<g id="步骤" transform="translate(3.000000, 2.000000)">
<path d="M3.09909792,7.47070282 C2.93938618,7.03149552 2.58003476,6.6721441 2.14082746,6.51243236 L2.14082746,3.11855781 C2.97931411,2.83906226 3.41852141,1.92071974 3.09909792,1.08223309 C2.81960238,0.243746434 1.90125985,-0.195460863 1.0627732,0.084034685 C0.224286544,0.403458182 -0.214920737,1.32180071 0.104502744,2.12035942 C0.264214493,2.59949465 0.623565908,2.95884606 1.0627732,3.11855781 L1.0627732,6.51243236 C0.22428656,6.7919279 -0.214920737,7.71027043 0.104502744,8.54875708 C0.264214493,8.98796437 0.623565908,9.34731579 1.0627732,9.50702754 L1.0627732,12.9009021 C0.22428656,13.1803976 -0.214920737,14.0987402 0.104502744,14.9372268 C0.383998293,15.7757134 1.30234082,16.2149207 2.14082746,15.8954973 C2.97931411,15.6160017 3.41852141,14.6976592 3.09909792,13.8591725 C2.93938618,13.4199652 2.58003476,13.0606138 2.14082746,12.9009021 L2.14082746,9.50702754 C2.97931411,9.18760405 3.37859347,8.30918946 3.09909792,7.47070282 Z M13.8397126,1.08223309 L5.33506232,1.08223309 C4.7361433,1.08223309 4.25700807,1.56136832 4.25700807,2.16028735 L4.25700807,4.27646795 L13.8397126,4.27646795 C14.4386317,4.27646795 14.9177669,3.79733272 14.9177669,3.19841368 L14.9177669,2.12035942 C14.9177669,1.56136832 14.4386317,1.08223309 13.8397126,1.08223309 Z M13.8397126,11.703064 L5.33506232,11.703064 C4.7361433,11.703064 4.25700807,12.1821992 4.25700807,12.7811183 L4.25700807,14.8972989 L13.8397126,14.8972989 C14.4386317,14.8972989 14.9177669,14.4181636 14.9177669,13.8192446 L14.9177669,12.7811183 C14.9177669,12.1821992 14.4386317,11.703064 13.8397126,11.703064 Z M13.8397126,6.39264854 L5.33506232,6.39264854 C4.7361433,6.39264854 4.25700807,6.87178377 4.25700807,7.47070282 L4.25700807,9.5868834 L13.8397126,9.5868834 C14.4386317,9.5868834 14.9177669,9.10774817 14.9177669,8.50882914 L14.9177669,7.43077487 C14.9177669,6.87178377 14.4386317,6.39264854 13.8397126,6.39264854 L13.8397126,6.39264854 Z" id="形状"></path>
</g>
</g>
</g>
</g>
</g>
</svg>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>ico_联系信息@2x</title>
<g id="车企实名制系统" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="自然人实名-客户信息" transform="translate(-272.000000, -1343.000000)" fill="#768093" fill-rule="nonzero">
<g id="编组-43" transform="translate(240.000000, 1322.000000)">
<g id="编组-7" transform="translate(32.000000, 21.000000)">
<path d="M13.5772976,17.884972 C12.5725348,17.884972 11.2752724,17.2141168 10.3639742,16.6512065 C9.14362762,15.8974815 7.82888101,14.8546026 6.66188624,13.7150752 L6.65762312,13.710884 L6.28714631,13.3394538 C5.15011922,12.1698688 4.10975857,10.8520643 3.35761653,9.62887561 C2.79605528,8.71556284 2.12660316,7.41544033 2.12660316,6.40833913 C2.12660316,5.33058186 2.89558179,4.18677335 3.22607172,3.74510081 C3.48403482,3.4002746 4.38524181,2.27544324 5.15100062,2.27544324 C5.46535548,2.27544324 5.8039759,2.48170939 6.24901217,2.94433773 C6.64265728,3.35330845 7.02040117,3.86180569 7.26787738,4.21627336 C7.60032798,4.69215872 7.90772157,5.19045687 8.13372034,5.61941204 C8.4994124,6.31395713 8.54170173,6.61194309 8.54170173,6.77550621 C8.54170173,7.10561839 8.36959442,7.39205618 8.03034443,7.6266891 C7.80697188,7.78107842 7.53870176,7.8973336 7.27940756,8.00981135 C7.1044402,8.0857019 6.82514355,8.20672384 6.71858379,8.29186012 C6.75583653,8.44959517 6.91828439,8.83073876 7.35727676,9.47677074 C7.76642736,10.0788585 8.29552062,10.7311862 8.7734206,11.2230808 C9.26427181,11.702078 9.91499862,12.2325024 10.5159172,12.6424624 C11.1602044,13.0823722 11.5404665,13.2452877 11.6980757,13.2825944 C11.7828702,13.1758368 11.9036943,12.8959106 11.979369,12.7206734 C12.0915049,12.4607137 12.2075982,12.191796 12.3616997,11.9679018 C12.595883,11.6277884 12.8815473,11.4554652 13.2110659,11.4554652 C13.3742692,11.4554652 13.6714997,11.4977905 14.3644439,11.86431 C14.7924816,12.0907585 15.2897005,12.3989076 15.7645066,12.7320957 C16.1181648,12.9801475 16.6254929,13.3587188 17.0336541,13.7531194 C17.4950593,14.1993249 17.7008938,14.5386468 17.7008938,14.8537752 C17.7008938,15.6212248 16.5787246,16.5245544 16.2347078,16.7829672 C15.7937728,17.1144464 14.6524826,17.884972 13.5772976,17.884972 L13.5772976,17.884972 L13.5772976,17.884972 L13.5772976,17.884972 Z" id="形状"></path>
</g>
</g>
</g>
</g>
</svg>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>icon_活体视频</title>
<g id="车企实名制系统" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="自然人实名-人脸识别" transform="translate(-272.000000, -283.000000)" fill="#768093" fill-rule="nonzero">
<g id="编组-43" transform="translate(240.000000, 262.000000)">
<g id="编组-46" transform="translate(32.000000, 21.000000)">
<path d="M18.7584,5.49958 L16.16032,6.37896 L16.16032,4.09514 C16.16032,3.63804 15.78986,3.26748 15.33274,3.26748 L13.09534,3.26748 L4.96078,3.26748 L1.4414,3.26748 C0.9843,3.26748 0.61374,3.63802 0.61374,4.09514 L0.61374,12.91926 L0.61374,15.51096 L0.60288,15.99066 C0.60288,16.44768 0.97342,16.81832 1.43054,16.81832 L10.8476,16.81832 L15.33276,16.81832 C15.78986,16.81832 16.16034,16.4477 16.16034,15.99066 L16.16034,15.71572 L16.16034,14.40722 L18.75842,15.28652 C19.21552,15.28652 19.58608,14.91598 19.58608,14.45894 L19.58608,6.32724 C19.58608,5.87014 19.2155,5.49958 18.7584,5.49958 Z M11.00636,10.3799 L7.88648,12.73412 C7.81436,12.78828 7.72748,12.8162 7.64068,12.8162 C7.57852,12.8162 7.51634,12.80184 7.45858,12.7732 C7.32038,12.70466 7.23276,12.5628 7.23276,12.40828 L7.23276,7.84318 C7.23276,7.69102 7.31802,7.55078 7.45344,7.4807 C7.58806,7.41136 7.7518,7.42254 7.87644,7.51016 L10.9964,9.72104 C11.1027,9.79666 11.1665,9.91782 11.16846,10.04762 C11.17042,10.1783 11.1103,10.301 11.00636,10.3799 Z" id="形状"></path>
</g>
</g>
</g>
</g>
</svg>
\ No newline at end of file
module.exports = {
env: {
jest: true
}
}
// A custom Nightwatch assertion.
// The assertion name is the filename.
// Example usage:
//
// browser.assert.elementCount(selector, count)
//
// For more information on custom assertions see:
// http://nightwatchjs.org/guide#writing-custom-assertions
exports.assertion = function (selector, count) {
this.message = 'Testing if element <' + selector + '> has count: ' + count
this.expected = count
this.pass = function (val) {
return val === this.expected
}
this.value = function (res) {
return res.value
}
this.command = function (cb) {
var self = this
return this.api.execute(function (selector) {
return document.querySelectorAll(selector).length
}, [selector], function (res) {
cb.call(self, res)
})
}
}
require('babel-register')
var config = require('../../config')
// http://nightwatchjs.org/gettingstarted#settings-file
module.exports = {
src_folders: ['test/e2e/specs'],
output_folder: 'test/e2e/reports',
custom_assertions_path: ['test/e2e/custom-assertions'],
selenium: {
start_process: true,
server_path: require('selenium-server').path,
host: '127.0.0.1',
port: 4444,
cli_args: {
'webdriver.chrome.driver': require('chromedriver').path
}
},
test_settings: {
default: {
selenium_port: 4444,
selenium_host: 'localhost',
silent: true,
globals: {
devServerURL: 'http://localhost:' + (process.env.PORT || config.dev.port)
}
},
chrome: {
desiredCapabilities: {
browserName: 'chrome',
javascriptEnabled: true,
acceptSslCerts: true
}
},
firefox: {
desiredCapabilities: {
browserName: 'firefox',
javascriptEnabled: true,
acceptSslCerts: true
}
}
}
}
// 1. start the dev server using production config
process.env.NODE_ENV = 'testing'
const webpack = require('webpack')
const DevServer = require('webpack-dev-server')
const webpackConfig = require('../../build/webpack.prod.conf')
const devConfigPromise = require('../../build/webpack.dev.conf')
let server
devConfigPromise.then(devConfig => {
const devServerOptions = devConfig.devServer
const compiler = webpack(webpackConfig)
server = new DevServer(compiler, devServerOptions)
const port = devServerOptions.port
const host = devServerOptions.host
return server.listen(port, host)
})
.then(() => {
// 2. run the nightwatch test suite against it
// to run in additional browsers:
// 1. add an entry in test/e2e/nightwatch.conf.js under "test_settings"
// 2. add it to the --env flag below
// or override the environment flag, for example: `npm run e2e -- --env chrome,firefox`
// For more information on Nightwatch's config file, see
// http://nightwatchjs.org/guide#settings-file
let opts = process.argv.slice(2)
if (opts.indexOf('--config') === -1) {
opts = opts.concat(['--config', 'test/e2e/nightwatch.conf.js'])
}
if (opts.indexOf('--env') === -1) {
opts = opts.concat(['--env', 'chrome'])
}
const spawn = require('cross-spawn')
const runner = spawn('./node_modules/.bin/nightwatch', opts, { stdio: 'inherit' })
runner.on('exit', function (code) {
server.close()
process.exit(code)
})
runner.on('error', function (err) {
server.close()
throw err
})
})
// For authoring Nightwatch tests, see
// http://nightwatchjs.org/guide#usage
module.exports = {
'default e2e tests': function (browser) {
// automatically uses dev Server port from /config.index.js
// default: http://localhost:8080
// see nightwatch.conf.js
const devServer = browser.globals.devServerURL
browser
.url(devServer)
.waitForElementVisible('#app', 5000)
.assert.elementPresent('.hello')
.assert.containsText('h1', 'Welcome to Your Vue.js App')
.assert.elementCount('img', 1)
.end()
}
}
{
"env": {
"jest": true
},
"globals": {
}
}
module.exports = {
moduleFileExtensions: ['js', 'jsx', 'json', 'vue'],
transform: {
'^.+\\.vue$': 'vue-jest',
'.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$':
'jest-transform-stub',
'^.+\\.jsx?$': 'babel-jest'
},
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1'
},
snapshotSerializers: ['jest-serializer-vue'],
testMatch: [
'**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)'
],
collectCoverageFrom: ['src/utils/**/*.{js,vue}', '!src/utils/auth.js', '!src/utils/request.js', 'src/components/**/*.{js,vue}'],
coverageDirectory: '<rootDir>/tests/unit/coverage',
// 'collectCoverage': true,
'coverageReporters': [
'lcov',
'text-summary'
],
testURL: 'http://localhost/'
}
import Vue from 'vue'
Vue.config.productionTip = false
import Vue from 'vue'
import HelloWorld from '@/components/HelloWorld'
describe('HelloWorld.vue', () => {
it('should render correct contents', () => {
const Constructor = Vue.extend(HelloWorld)
const vm = new Constructor().$mount()
expect(vm.$el.querySelector('.hello h1').textContent)
.toEqual('Welcome to Your Vue.js App')
})
})
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment