diff --git a/src/webgpu/web_platform/canvas/configure.spec.ts b/src/webgpu/web_platform/canvas/configure.spec.ts index 472bc008ef3f..3e9905dd5bd8 100644 --- a/src/webgpu/web_platform/canvas/configure.spec.ts +++ b/src/webgpu/web_platform/canvas/configure.spec.ts @@ -179,7 +179,7 @@ g.test('format') format, }); const configuration = ctx.getConfiguration(); - t.expect(configuration.format === format); + t.expect(configuration!.format === format); } else { t.shouldThrow('TypeError', () => { ctx.configure({ @@ -223,7 +223,7 @@ g.test('usage') }); const configuration = ctx.getConfiguration(); - t.expect(configuration.usage === usage); + t.expect(configuration!.usage === usage); const currentTexture = ctx.getCurrentTexture(); t.expect(currentTexture instanceof GPUTexture); @@ -336,7 +336,7 @@ g.test('alpha_mode') }); const configuration = ctx.getConfiguration(); - t.expect(configuration.alphaMode === alphaMode); + t.expect(configuration!.alphaMode === alphaMode); const currentTexture = ctx.getCurrentTexture(); t.expect(currentTexture instanceof GPUTexture);