mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
test: Update snapshots and mocks
This commit is contained in:
@@ -6,7 +6,14 @@ import { getMockTeam, getMultipleMockTeams } from './__mocks__/teamMocks';
|
||||
|
||||
const setup = (propOverrides?: object) => {
|
||||
const props: Props = {
|
||||
navModel: {} as NavModel,
|
||||
navModel: {
|
||||
main: {
|
||||
text: 'Configuration'
|
||||
},
|
||||
node: {
|
||||
text: 'Team List'
|
||||
}
|
||||
} as NavModel,
|
||||
teams: [] as Team[],
|
||||
loadTeams: jest.fn(),
|
||||
deleteTeam: jest.fn(),
|
||||
|
||||
@@ -2,10 +2,19 @@
|
||||
|
||||
exports[`Render should render component 1`] = `
|
||||
<Page
|
||||
title="Configuration: Teams"
|
||||
title="Configuration: Team List"
|
||||
>
|
||||
<PageHeader
|
||||
model={Object {}}
|
||||
model={
|
||||
Object {
|
||||
"main": Object {
|
||||
"text": "Configuration",
|
||||
},
|
||||
"node": Object {
|
||||
"text": "Team List",
|
||||
},
|
||||
}
|
||||
}
|
||||
/>
|
||||
<PageContents
|
||||
isLoading={true}
|
||||
@@ -15,10 +24,19 @@ exports[`Render should render component 1`] = `
|
||||
|
||||
exports[`Render should render teams table 1`] = `
|
||||
<Page
|
||||
title="Configuration: Teams"
|
||||
title="Configuration: Team List"
|
||||
>
|
||||
<PageHeader
|
||||
model={Object {}}
|
||||
model={
|
||||
Object {
|
||||
"main": Object {
|
||||
"text": "Configuration",
|
||||
},
|
||||
"node": Object {
|
||||
"text": "Team List",
|
||||
},
|
||||
}
|
||||
}
|
||||
/>
|
||||
<PageContents
|
||||
isLoading={false}
|
||||
|
||||
Reference in New Issue
Block a user