diff --git a/x-pack/plugins/apm/public/components/app/ErrorGroupDetails/DetailView/__test__/DetailView.test.js b/x-pack/plugins/apm/public/components/app/ErrorGroupDetails/DetailView/__test__/DetailView.test.js
index c41fe7891a6b6e..1111a7aec186a4 100644
--- a/x-pack/plugins/apm/public/components/app/ErrorGroupDetails/DetailView/__test__/DetailView.test.js
+++ b/x-pack/plugins/apm/public/components/app/ErrorGroupDetails/DetailView/__test__/DetailView.test.js
@@ -7,43 +7,36 @@
import React from 'react';
import DetailView from '../index';
import props from './props.json';
+import { shallow } from 'enzyme';
-import {
- mountWithRouterAndStore,
- mockMoment,
- toJson
-} from '../../../../../utils/testHelpers';
+import { mockMoment } from '../../../../../utils/testHelpers';
describe('DetailView', () => {
- let storeState;
beforeEach(() => {
// Avoid timezone issues
mockMoment();
-
- storeState = {
- location: { search: '' }
- };
});
it('should render empty state', () => {
- const wrapper = mountWithRouterAndStore(
-
-
-
-
-
-
-
-
-
- var
-
- express =
-
- require
-
- (
-
- 'express'
-
- )
-
-
-
-
-
- var
-
- apm =
-
+
+
+ (server/coffee.js)",
+ "exception": Object {
+ "message": "Cannot read property 'level' of undefined",
+ "stacktrace": Array [
Object {
- "color": "#5c2699",
- }
- }
- >
- require
-
- (
- ",
+ "libraryFrame": false,
+ "line": Object {
+ "context": " if (req.paarms.level === 11) {",
+ "number": 9,
+ },
+ },
Object {
- "color": "#c41a16",
- }
- }
- >
- 'elastic-apm-node'
-
- )
-
-
-
-
-
-
-
-
-
-
- 3) {",
+ " // not a standard request handler",
+ " return next();",
+ " }",
+ "",
+ " try {",
+ ],
+ },
+ "filename": "node_modules/express/lib/router/layer.js",
+ "function": "handle",
+ "libraryFrame": true,
+ "line": Object {
+ "context": " fn(req, res, next);",
+ "number": 95,
+ },
+ },
Object {
- "color": "#aa0d91",
- }
- }
- >
- var
-
- app =
-
- module
-
- .exports =
-
- new
-
- express.Router()
-
-
-
-
-
-
-
-
-
-
- app.get(
- 3) {",
+ " // not a standard request handler",
+ " return next();",
+ " }",
+ "",
+ " try {",
+ ],
+ },
+ "filename": "node_modules/express/lib/router/layer.js",
+ "function": "handle",
+ "libraryFrame": true,
+ "line": Object {
+ "context": " fn(req, res, next);",
+ "number": 95,
+ },
+ },
Object {
- "color": "#c41a16",
- }
- }
- >
- '/is-it-coffee-time'
-
- ,
-
-
- function
-
- (
-
- req, res
-
- )
-
- {
-
-
-
-
-
- ",
+ "libraryFrame": true,
+ "line": Object {
+ "context": " return layer.handle_request(req, res, next);",
+ "number": 281,
+ },
+ },
Object {
- "color": "#aa0d91",
- }
- }
- >
- if
-
- (req.paarms.level ===
-
- 11
-
- ) {
-
-
-
-
- res.send(
-
- 'Of course!'
-
- )
-
-
-
-
- }
-
- else
-
- {
-
-
-
-
- res.send(
-
- 'You can\\'t have any!'
-
- )
-
-
-
-
- }
-
-
-
-
- })
-
-
-
-
-
-
-
-
-
-
- app.get(
- 3) {",
+ " // not a standard request handler",
+ " return next();",
+ " }",
+ "",
+ " try {",
+ ],
+ },
+ "filename": "node_modules/express/lib/router/layer.js",
+ "function": "handle",
+ "libraryFrame": true,
+ "line": Object {
+ "context": " fn(req, res, next);",
+ "number": 95,
+ },
+ },
Object {
- "color": "#c41a16",
- }
- }
- >
- '/log-error'
-
- ,
-
-
- function
-
- (
-
- req, res
-
- )
-
- {
-
-
-
-
- app.use(
-
- require
-
- (
- ",
+ "libraryFrame": true,
+ "line": Object {
+ "context": " trim_prefix(layer, layerError, layerPath, path);",
+ "number": 284,
+ },
+ },
Object {
- "color": "#c41a16",
- }
- }
- >
- 'body-parser'
-
- ).json())
-
-
-
-
- app.use(express.static(
-
- 'client/build'
-
- ))
-
-
-
-
- app.use(
-
-
- function
-
- (
-
- req, res, next
-
- )
-
- {
-
-
-
-
- apm.setTag(
-
- 'foo'
-
- ,
- ",
+ "libraryFrame": false,
+ "line": Object {
+ "context": " next()",
+ "number": 27,
+ },
+ },
Object {
- "color": "#c41a16",
- }
- }
- >
- 'bar'
-
- )
-
-
-
-
- apm.setTag(
- 3) {",
+ " // not a standard request handler",
+ " return next();",
+ " }",
+ "",
+ " try {",
+ ],
+ },
+ "filename": "node_modules/express/lib/router/layer.js",
+ "function": "handle",
+ "libraryFrame": true,
+ "line": Object {
+ "context": " fn(req, res, next);",
+ "number": 95,
+ },
+ },
Object {
- "color": "#c41a16",
- }
- }
- >
- 'lorem'
-
- ,
-
- 'ipsum dolor sit amet, consectetur adipiscing elit. Nulla finibus, ipsum id scelerisque consequat, enim leo vulputate massa, vel ultricies ante neque ac risus. Curabitur tincidunt vitae sapien id pulvinar. Mauris eu vestibulum tortor. Integer sit amet lorem fringilla, egestas tellus vitae, vulputate purus. Nulla feugiat blandit nunc et semper. Morbi purus libero, mattis sed mauris non, euismod iaculis lacus. Curabitur eleifend ante eros, non faucibus velit lacinia id. Duis posuere libero augue, at dignissim urna consectetur eget. Praesent eu congue est, iaculis finibus augue.'
-
- )
-
-
-
-
- apm.setTag(
- ",
+ "libraryFrame": true,
+ "line": Object {
+ "context": " trim_prefix(layer, layerError, layerPath, path);",
+ "number": 284,
+ },
+ },
Object {
- "color": "#c41a16",
- }
- }
- >
- 'this-is-a-very-long-tag-name-without-any-spaces'
-
- ,
-
- 'test'
-
- )
-
-
-
-
- apm.setTag(
-
- 'multi-line'
-
- ,
-
- 'foo\\nbar\\nbaz'
-
- )
-
-
-
-
- next()
-
-
-
-
- })
-
-
-
-
-
-
-
-
-
-
- app.use(
-
- require
-
- (
-
- './server/coffee'
-
- ))
-
-
-
-
- app.use(
-
- '/api'
-
- ,
-
- require
-
- (
-
- './server/routes'
-
- ))
-
-
-
-
- app.get(
-
- '*'
-
- ,
-
-
- function
-
- (
-
- req, res
-
- )
-
- {
-
-
-
-
- res.sendFile(path.resolve(__dirname,
-
- 'client/build'
-
- ,
-
- 'index.html'
-
- ))
-
-
-
-
- })
-
-
-