Skip to content

Commit 940f92c

Browse files
author
Bar Admoni
committed
Fix test assertion
1 parent 64cb19e commit 940f92c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/neural-network-gpu.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ describe('NeuralNetworkGPU', () => {
7777
);
7878
expect(net.weights.length).toBe(3);
7979
for (let i = 1; i < net.weights.length; i++) {
80-
expect(net.weights[i] instanceof Texture).toBeTruthy();
80+
expect(net.biases[i]).toBeInstanceOf(Texture);
8181
}
8282
expect(net.biases.length).toBe(3);
8383
for (let i = 1; i < net.biases.length; i++) {
84-
expect(net.biases[i] instanceof Texture).toBeTruthy();
84+
expect(net.biases[i]).toBeInstanceOf(Texture);
8585
}
8686
const json = net.toJSON();
8787
expect(json.layers.length).toBe(3);

0 commit comments

Comments
 (0)