diff options
author | Lukas Eipert <leipert@gitlab.com> | 2018-07-10 00:31:33 +0300 |
---|---|---|
committer | Lukas Eipert <leipert@gitlab.com> | 2018-07-11 18:26:26 +0300 |
commit | 0ddedab5d59c259d454eee01bdc22832048bd7d4 (patch) | |
tree | 68fd2fdc02a43b52c0514761f59db2283911dd92 /spec/javascripts/test_bundle.js | |
parent | 6a0ff9eb7cc5e95ba25ecd86aef34330c89bdeed (diff) |
improve log output of jasmine `toEqual` with nested objects/arrays
Diffstat (limited to 'spec/javascripts/test_bundle.js')
-rw-r--r-- | spec/javascripts/test_bundle.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/spec/javascripts/test_bundle.js b/spec/javascripts/test_bundle.js index 0eff98bcc9d..f77040bb5c6 100644 --- a/spec/javascripts/test_bundle.js +++ b/spec/javascripts/test_bundle.js @@ -6,6 +6,7 @@ import '~/commons'; import Vue from 'vue'; import VueResource from 'vue-resource'; import Translate from '~/vue_shared/translate'; +import jasmineDiff from 'jasmine-diff'; import { getDefaultAdapter } from '~/lib/utils/axios_utils'; import { FIXTURES_PATH, TEST_HOST } from './test_constants'; @@ -35,7 +36,15 @@ Vue.use(Translate); jasmine.getFixtures().fixturesPath = FIXTURES_PATH; jasmine.getJSONFixtures().fixturesPath = FIXTURES_PATH; -beforeAll(() => jasmine.addMatchers(customMatchers)); +beforeAll(() => { + jasmine.addMatchers( + jasmineDiff(jasmine, { + colors: true, + inline: true, + }), + ); + jasmine.addMatchers(customMatchers); +}); // globalize common libraries window.$ = $; |