Gitlab is now using https://gitlab.lcsb.uni.lu as it's primary address. Please update your bookmarks. FAQ.

Commit 7b5f5d51 authored by Sascha Herzinger's avatar Sascha Herzinger
Browse files

Fixing CI and tests

parent 1f80c74e
......@@ -11,10 +11,9 @@ stages:
test:all:
stage: test
script:
- yum install -y git gcc-c++ make
- echo -e "[google-chrome]\nname=google-chrome\nbaseurl=http://dl.google.com/linux/chrome/rpm/stable/\$basearch\nenabled=1\ngpgcheck=1\ngpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub" > /etc/yum.repos.d/google-chrome.repo
- yum install -y git gcc-c++ make firefox
- curl --silent --location https://rpm.nodesource.com/setup_10.x | bash -
- yum install -y google-chrome-stable nodejs
- yum install -y nodejs
- npm install
- npm test
......
......@@ -18,7 +18,7 @@ describe('DataBox', () => {
{data_type: 'numeric', label: '', etl_state: 'SUCCESS'}
]
const Component = Vue.extend(DataBox)
const propsData = {dataTypes: ['numeric'], header: ''}
const propsData = {dataTypes: ['numeric'], header: '', validRange: [-Infinity, Infinity]}
const vm = new Component({propsData}).$mount()
expect(vm.$el.querySelectorAll('.fjs-item-head').length).toBe(3)
})
......@@ -29,7 +29,7 @@ describe('DataBox', () => {
{data_type: 'categoric', label: '', etl_state: 'SUCCESS'}
]
const Component = Vue.extend(DataBox)
const propsData = {dataTypes: ['numeric'], header: ''}
const propsData = {dataTypes: ['numeric'], header: '', validRange: [-Infinity, Infinity]}
const vm = new Component({propsData}).$mount()
expect(vm.$el.querySelectorAll('.fjs-item-head').length).toBe(1)
})
......@@ -40,7 +40,7 @@ describe('DataBox', () => {
{data_type: 'numeric', label: '', task_id: 'B', etl_state: 'SUCCESS'}
]
const Component = Vue.extend(DataBox)
const propsData = {dataTypes: ['numeric'], header: ''}
const propsData = {dataTypes: ['numeric'], header: '', validRange: [-Infinity, Infinity]}
const data = {checkedIds: ['A']}
const vm = new Component({propsData, data}).$mount()
expect(vm.$el.querySelectorAll('.fjs-item-head').length).toBe(2)
......@@ -57,7 +57,7 @@ describe('DataBox', () => {
{data_type: 'numeric', label: '', task_id: 'E', etl_state: 'FOO'}
]
const Component = Vue.extend(DataBox)
const propsData = {dataTypes: ['numeric'], header: ''}
const propsData = {dataTypes: ['numeric'], header: '', validRange: [-Infinity, Infinity]}
const vm = new Component({propsData}).$mount()
expect(vm.$el.querySelectorAll('.fjs-item-head').length).toBe(3)
})
......
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