doc: fix GPU infoType typings (#19470)

This commit is contained in:
Shelley Vohr 2019-07-26 16:16:38 -07:00 committed by GitHub
parent db3cf52add
commit 5aa1385cfc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -1058,7 +1058,7 @@ describe('app module', () => {
it('fails for invalid info_type', () => {
const invalidType = 'invalid'
const expectedErrorMessage = "Invalid info type. Use 'basic' or 'complete'"
return expect(app.getGPUInfo(invalidType)).to.eventually.be.rejectedWith(expectedErrorMessage)
return expect(app.getGPUInfo(invalidType as any)).to.eventually.be.rejectedWith(expectedErrorMessage)
})
})