Skip to content

Commit

Permalink
revert webgl
Browse files Browse the repository at this point in the history
  • Loading branch information
xnerhu committed Oct 23, 2024
1 parent b0c4de3 commit 74a2eae
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/sources/webgl.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
import { isHeadlessChrome } from '../../tests/utils'
import { BotdError } from '../types'
import getWebGL from './webgl'

describe('Sources', () => {
describe('webgl', () => {
it('returns expected values or throws', () => {
if (isHeadlessChrome()) {
expect(() => getWebGL()).toThrow(new BotdError(-4, 'WebGLRenderingContext is null'))
return
}

const result = getWebGL()

expect(typeof result.renderer).toBe('string')
Expand Down

0 comments on commit 74a2eae

Please sign in to comment.