Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
donmccurdy committed May 16, 2023
1 parent 277cf4e commit 4e77310
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/functions/test/metal-rough.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,19 @@ test('textures', async (t) => {
t.truthy(metalRoughTex.isDisposed(), 'disposes metalRoughTexture');
t.truthy(specGlossTex.isDisposed(), 'disposes specGlossTexture');
t.deepEqual(
Array.from((await getPixels(mat.getBaseColorTexture().getImage(), 'image/png')).data),
Array.from((await getPixels(mat.getBaseColorTexture().getImage(), 'image/png')).data as Uint8Array),
Array.from(DIFFUSE.data),
'diffuse -> baseColor'
);
t.deepEqual(
Array.from((await getPixels(mat.getMetallicRoughnessTexture().getImage(), 'image/png')).data),
Array.from((await getPixels(mat.getMetallicRoughnessTexture().getImage(), 'image/png')).data as Uint8Array),
Array.from(ROUGH.data),
'spec -> rough'
);
t.deepEqual(
Array.from((await getPixels(specularExtension.getSpecularTexture().getImage(), 'image/png')).data),
Array.from(
(await getPixels(specularExtension.getSpecularTexture().getImage(), 'image/png')).data as Uint8Array
),
Array.from(SPEC.data),
'spec -> spec'
);
Expand Down

0 comments on commit 4e77310

Please sign in to comment.