-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #420 from DEFRA/unit-test-coverage
Committing Unit test coverage code change
- Loading branch information
Showing
27 changed files
with
770 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { accessibilityCy } from './index' | ||
|
||
describe('accessibility index plugin - cy', () => { | ||
const server = { | ||
route: jest.fn() | ||
} | ||
|
||
test('should register accessibility route - cy', () => { | ||
accessibilityCy.plugin.register(server) | ||
expect(server.route).toHaveBeenCalled() | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { routes } from './routes' | ||
import { accessibilityController } from './controller' | ||
|
||
jest.mock('./controller') | ||
|
||
describe('Accessibility cy Routes', () => { | ||
it('should define the accessibility route - cy', () => { | ||
expect(routes).toEqual([ | ||
{ | ||
method: 'GET', | ||
path: '/hygyrchedd/cy', | ||
...accessibilityController | ||
} | ||
]) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { accessibility } from './index' | ||
|
||
describe('accessibility index plugin', () => { | ||
const server = { | ||
route: jest.fn() | ||
} | ||
|
||
test('should register accessibility route', () => { | ||
accessibility.plugin.register(server) | ||
expect(server.route).toHaveBeenCalled() | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { homeCy } from './index' | ||
|
||
describe('homeCy index plugin - cy', () => { | ||
const server = { | ||
route: jest.fn() | ||
} | ||
|
||
test('should register homeCy route - cy', () => { | ||
homeCy.plugin.register(server) | ||
expect(server.route).toHaveBeenCalled() | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { home } from './index' | ||
|
||
describe('home index plugin', () => { | ||
const server = { | ||
route: jest.fn() | ||
} | ||
|
||
test('should register home route', () => { | ||
home.plugin.register(server) | ||
expect(server.route).toHaveBeenCalled() | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.