123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179 |
- // Jest Snapshot v1, https://goo.gl/fbAQLP
-
- exports[`should work 1`] = `
- <Fragment>
- <Suggestions
- suggestions="custom_measures"
- />
- <Helmet
- defer={true}
- encodeSpecialCharacters={true}
- title="custom_measures.page"
- />
- <div
- className="page page-limited"
- >
- <Header
- loading={true}
- onCreate={[Function]}
- />
- </div>
- </Fragment>
- `;
-
- exports[`should work 2`] = `
- <Fragment>
- <Suggestions
- suggestions="custom_measures"
- />
- <Helmet
- defer={true}
- encodeSpecialCharacters={true}
- title="custom_measures.page"
- />
- <div
- className="page page-limited"
- >
- <Header
- loading={false}
- onCreate={[Function]}
- skipMetrics={
- Array [
- "custom",
- ]
- }
- />
- <List
- measures={
- Array [
- Object {
- "createdAt": "2017-01-01",
- "description": "my custom measure",
- "id": "1",
- "metric": Object {
- "key": "custom",
- "name": "custom-metric",
- "type": "STRING",
- },
- "projectKey": "foo",
- "user": Object {
- "active": true,
- "login": "user",
- "name": "user",
- },
- "value": "custom-value",
- },
- ]
- }
- onDelete={[Function]}
- onEdit={[Function]}
- />
- <ListFooter
- count={1}
- loadMore={[Function]}
- ready={true}
- total={1}
- />
- </div>
- </Fragment>
- `;
-
- exports[`should work 3`] = `
- Array [
- Object {
- "createdAt": "2017-01-01",
- "description": "my custom measure",
- "id": "1",
- "metric": Object {
- "key": "custom",
- "name": "custom-metric",
- "type": "STRING",
- },
- "projectKey": "foo",
- "user": Object {
- "active": true,
- "login": "user",
- "name": "user",
- },
- "value": "custom-value",
- },
- Object {
- "createdAt": "2018-01-01",
- "description": "description",
- "id": "2",
- "metric": Object {
- "key": "metricKey",
- "name": "Metric Name",
- "type": "STRING",
- },
- "projectKey": "foo",
- "user": Object {
- "active": true,
- "login": "user",
- "name": "user",
- },
- "value": "value",
- },
- ]
- `;
-
- exports[`should work 4`] = `
- Array [
- Object {
- "createdAt": "2017-01-01",
- "description": "my custom measure",
- "id": "1",
- "metric": Object {
- "key": "custom",
- "name": "custom-metric",
- "type": "STRING",
- },
- "projectKey": "foo",
- "user": Object {
- "active": true,
- "login": "user",
- "name": "user",
- },
- "value": "custom-value",
- },
- Object {
- "createdAt": "2018-01-01",
- "description": "another",
- "id": "2",
- "metric": Object {
- "key": "metricKey",
- "name": "Metric Name",
- "type": "STRING",
- },
- "projectKey": "foo",
- "user": Object {
- "active": true,
- "login": "user",
- "name": "user",
- },
- "value": "other",
- },
- ]
- `;
-
- exports[`should work 5`] = `
- Array [
- Object {
- "createdAt": "2017-01-01",
- "description": "my custom measure",
- "id": "1",
- "metric": Object {
- "key": "custom",
- "name": "custom-metric",
- "type": "STRING",
- },
- "projectKey": "foo",
- "user": Object {
- "active": true,
- "login": "user",
- "name": "user",
- },
- "value": "custom-value",
- },
- ]
- `;
|