Skip to content

Commit

Permalink
test(ui-byline): migrate old Byline tests
Browse files Browse the repository at this point in the history
Closes: INSTUI-3866
  • Loading branch information
git-nandor committed Oct 4, 2023
1 parent 42d6538 commit e70f732
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 137 deletions.
8 changes: 7 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions packages/ui-byline/src/Byline/__new-tests__/Byline.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,6 @@ describe('<Byline />', () => {
expect(figureElement).toBeInTheDocument()
})

it(`should not allow the 'as' prop`, () => {
const spyOnConsole = jest.spyOn(console, 'error').mockImplementation()
renderByline({ as: 'foo' })
const warningMessage = spyOnConsole.mock.calls[0][0]

expect(warningMessage).toBe("Warning: [Byline] prop 'as' is not allowed.")

spyOnConsole.mockRestore()
})

describe('when passing down props to View', () => {
let spyOnConsoleError: jest.SpyInstance
const customAllowedProps: { [key: string]: string } = { margin: 'small' }
Expand Down
126 changes: 0 additions & 126 deletions packages/ui-byline/src/Byline/__tests__/Byline.test.tsx

This file was deleted.

0 comments on commit e70f732

Please sign in to comment.