diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2018-09-11 21:03:05 +0000 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2018-09-11 21:03:05 +0000 |
commit | 01b669640ab02a9f3eb45d74396b27e1a4fa165d (patch) | |
tree | 56c10cb571b49754972f584a80189b6c6696a9e2 /spec/javascripts | |
parent | 9b0764938315dd581cf38d8589f6811dc63b26a8 (diff) | |
download | gitlab-ce-01b669640ab02a9f3eb45d74396b27e1a4fa165d.tar.gz |
Generate JUnit report for Karma tests
Diffstat (limited to 'spec/javascripts')
-rw-r--r-- | spec/javascripts/gfm_auto_complete_spec.js | 2 | ||||
-rw-r--r-- | spec/javascripts/test_bundle.js | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/spec/javascripts/gfm_auto_complete_spec.js b/spec/javascripts/gfm_auto_complete_spec.js index 1cb20a1e7ff..4f9cacf2724 100644 --- a/spec/javascripts/gfm_auto_complete_spec.js +++ b/spec/javascripts/gfm_auto_complete_spec.js @@ -146,7 +146,7 @@ describe('GfmAutoComplete', function () { shouldNotBeFollowedBy.forEach((followedSymbol) => { const seq = atSign + followedSymbol; - it(`should not match "${seq}"`, () => { + it(`should not match ${JSON.stringify(seq)}`, () => { expect(defaultMatcher(atwhoInstance, atSign, seq)).toBe(null); }); }); diff --git a/spec/javascripts/test_bundle.js b/spec/javascripts/test_bundle.js index 4452c470b82..b89d10cb993 100644 --- a/spec/javascripts/test_bundle.js +++ b/spec/javascripts/test_bundle.js @@ -1,6 +1,7 @@ /* eslint-disable jasmine/no-global-setup, jasmine/no-unsafe-spy, no-underscore-dangle, no-console */ +/* global __karma__ */ import $ from 'jquery'; import 'vendor/jasmine-jquery'; @@ -41,8 +42,8 @@ jasmine.getJSONFixtures().fixturesPath = FIXTURES_PATH; beforeAll(() => { jasmine.addMatchers( jasmineDiff(jasmine, { - colors: true, - inline: true, + colors: !__karma__.config.isCi, + inline: !__karma__.config.isCi, }), ); jasmine.addMatchers(customMatchers); |