Use verbose client test output on travis

This commit is contained in:
Ken-Håvard Lieng 2017-06-12 06:39:24 +02:00
parent b639ba6846
commit 9f8a0d72ba
6 changed files with 7 additions and 6 deletions

View File

@ -22,7 +22,7 @@ install:
- yarn
script:
- npm test
- npm run test:verbose
- gulp build
- cd ..
- go vet $(go list ./... | grep -v '/vendor/')

View File

@ -58,6 +58,7 @@
},
"scripts": {
"test": "jest",
"test:watch": "npm test -- --watch"
"test:verbose": "jest --verbose",
"test:watch": "jest --watch"
}
}

View File

@ -3,7 +3,7 @@ import reducer from '../channels';
import { connect } from '../servers';
import * as actions from '../actions';
describe('reducers/channels', () => {
describe('channel reducer', () => {
it('removes channels on PART', () => {
let state = Immutable.fromJS({
srv1: {

View File

@ -3,7 +3,7 @@ import reducer, { broadcast } from '../messages';
import * as actions from '../actions';
import appReducer from '../app';
describe('reducers/messages', () => {
describe('message reducer', () => {
it('adds the message on ADD_MESSAGE', () => {
const state = reducer(undefined, {
type: actions.ADD_MESSAGE,

View File

@ -2,7 +2,7 @@ import Immutable from 'immutable';
import reducer, { connect, setServerName } from '../servers';
import * as actions from '../actions';
describe('reducers/servers', () => {
describe('server reducer', () => {
it('adds the server on CONNECT', () => {
let state = reducer(undefined, connect('127.0.0.1:1337', 'nick', {}));

View File

@ -2,7 +2,7 @@ import reducer, { setSelectedTab } from '../tab';
import * as actions from '../actions';
import { locationChanged } from '../../util/router';
describe('reducers/tab', () => {
describe('tab reducer', () => {
it('selects the tab and adds it to history', () => {
let state = reducer(undefined, setSelectedTab('srv', '#chan'));