Skip to content
This repository has been archived by the owner on Jan 9, 2022. It is now read-only.

Commit

Permalink
remove check for console.error call
Browse files Browse the repository at this point in the history
  • Loading branch information
JensDll committed Nov 13, 2021
1 parent c3cac70 commit 395b5b1
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/vue3-form-validation/__tests__/form/data.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ let form: MockedObject<Form>
let formData: FormData
let transformedFormData: TransformedFormData<FormData>
let mocks: Tuple<jest.Mock, 2>
const mockConsoleError = jest.spyOn(console, 'error').mockImplementation()

beforeEach(() => {
mocks = makeMocks(2)
Expand All @@ -53,10 +52,6 @@ beforeEach(() => {
transformedFormData = reactive(formData) as any
})

afterEach(() => {
mockConsoleError.mockReset()
})

describe('mapFieldRules', () => {
it('simple rule', () => {
const ruleInfo = mapFieldRules([mocks[0]])
Expand Down Expand Up @@ -265,7 +260,6 @@ describe('mapFieldRules', () => {
expect(() => {
mapFieldRules([['x', mocks[0]]])
}).toThrow()
expect(mockConsoleError).toHaveBeenCalledTimes(1)
})
})

Expand Down

0 comments on commit 395b5b1

Please sign in to comment.