Fixes on LinkValidator.test.js
flag=none test plan: - Specs pass qa risk: low Change-Id: I34f0559f025c501785629c99846fbc677bdc7269 Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274251 Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com> Reviewed-by: Davis Hyer <dhyer@instructure.com> QA-Review: Davis Hyer <dhyer@instructure.com> Product-Review: Davis Hyer <dhyer@instructure.com>
This commit is contained in:
parent
b7981ea7ab
commit
4e8b42b3d7
|
@ -132,8 +132,6 @@ const ignoredErrors = [
|
|||
/The prop `outcomeGroup.title` is marked as required in `(GroupDescriptionModal|GroupEditModal|ManageOutcomesView)`/,
|
||||
/The prop `outcomes\[0\].mastery_points` is marked as required in `(Gradebook|ScoresGrid)`/,
|
||||
/The prop `permissionName` is marked as required in `PermissionTray`/,
|
||||
/The prop `pollTimeout` is marked as required in `LinkValidator`/,
|
||||
/The prop `pollTimeoutInitial` is marked as required in `LinkValidator`/,
|
||||
/The prop `rcsProps.canUploadFiles` is marked as required in `ForwardRef`/,
|
||||
/The prop `renderLabel` is marked as required in `(FileDrop|NumberInput|Select)`/,
|
||||
/The prop `reply` is marked as required in `MessageActionButtons`/,
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
import React from 'react'
|
||||
import {act} from 'react-dom/test-utils'
|
||||
import {mount,render} from 'enzyme'
|
||||
import {mount} from 'enzyme'
|
||||
import LinkValidator from '../LinkValidator'
|
||||
import sinon from 'sinon'
|
||||
import $ from 'jquery'
|
||||
|
@ -55,7 +55,7 @@ describe('LinkValidator', () => {
|
|||
})
|
||||
|
||||
it('renders confetti', () => {
|
||||
const wrapper = mount(<LinkValidator />)
|
||||
const wrapper = mount(<LinkValidator pollTimeout={0} pollTimeoutInitial={0} />)
|
||||
const promise = new Promise(resolve => {
|
||||
setTimeout(resolve, 1)
|
||||
})
|
||||
|
@ -78,7 +78,7 @@ describe('LinkValidator', () => {
|
|||
})
|
||||
|
||||
it('does not render confetti', () => {
|
||||
const wrapper = mount(<LinkValidator />)
|
||||
const wrapper = mount(<LinkValidator pollTimeout={0} pollTimeoutInitial={0} />)
|
||||
const promise = new Promise(resolve => {
|
||||
setTimeout(resolve, 1)
|
||||
})
|
||||
|
@ -138,7 +138,7 @@ describe('LinkValidator', () => {
|
|||
})
|
||||
|
||||
it('does not render confetti', () => {
|
||||
const wrapper = mount(<LinkValidator />)
|
||||
const wrapper = mount(<LinkValidator pollTimeout={0} pollTimeoutInitial={0} />)
|
||||
const promise = new Promise(resolve => {
|
||||
setTimeout(resolve, 1)
|
||||
})
|
||||
|
@ -153,7 +153,7 @@ describe('LinkValidator', () => {
|
|||
})
|
||||
|
||||
it('sanitizes URLs', () => {
|
||||
const wrapper = mount(<LinkValidator />)
|
||||
const wrapper = mount(<LinkValidator pollTimeout={0} pollTimeoutInitial={0} />)
|
||||
const promise = new Promise(resolve => {
|
||||
setTimeout(resolve, 1)
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue