Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeGoodall committed Aug 12, 2024
1 parent 2b23f59 commit 5450897
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions test/unit/organisationsController.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,12 +206,12 @@ describe('OrganisationsController.js', () => {
})

vi.mocked(performanceDbApi.getLpaDatasetIssues).mockResolvedValue([
{
{
issue: 'Example issue 1',
issue_type: 'Example issue type 1',
num_issues: 1,
status: 'Error'
},
}
])

vi.mocked(performanceDbApi.getTaskMessage).mockReturnValueOnce('task message 1')
Expand All @@ -220,18 +220,18 @@ describe('OrganisationsController.js', () => {

expect(res.render).toHaveBeenCalledTimes(1)
expect(res.render).toHaveBeenCalledWith('organisations/datasetTaskList.html', {
taskList: [{
taskList: [{
title: {
text: 'task message 1',
text: 'task message 1'
},
href: "/organisations/example-lpa/example-dataset/Example issue type 1",
href: '/organisations/example-lpa/example-dataset/Example issue type 1',
status: {
tag: {
classes: 'govuk-tag--red',
text: 'Error'
}
}
},],
}],
organisation: { name: 'Example Organisation' },
dataset: { name: 'Example Dataset' }
})
Expand All @@ -249,13 +249,13 @@ describe('OrganisationsController.js', () => {
})

vi.mocked(performanceDbApi.getLpaDatasetIssues).mockResolvedValue([
{
{
issue: 'Example issue 1',
issue_type: 'Example issue type 1',
num_issues: 1,
status: 'Error'
},
{
{
issue: 'Example issue 2',
issue_type: 'Example issue type 2',
num_issues: 1,
Expand All @@ -270,23 +270,23 @@ describe('OrganisationsController.js', () => {
expect(res.render).toHaveBeenCalledTimes(1)
expect(res.render).toHaveBeenCalledWith('organisations/datasetTaskList.html', {
taskList: [
{
{
title: {
text: 'task message 1',
text: 'task message 1'
},
href: "/organisations/example-lpa/example-dataset/Example issue type 1",
href: '/organisations/example-lpa/example-dataset/Example issue type 1',
status: {
tag: {
classes: 'govuk-tag--red',
text: 'Error'
}
}
},
{
{
title: {
text: 'task message 2',
text: 'task message 2'
},
href: "/organisations/example-lpa/example-dataset/Example issue type 2",
href: '/organisations/example-lpa/example-dataset/Example issue type 2',
status: {
tag: {
classes: 'govuk-tag--yellow',
Expand Down

0 comments on commit 5450897

Please sign in to comment.