Skip to content

Commit

Permalink
Update sum.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyBinoculars committed Oct 24, 2023
1 parent 2ad11f4 commit 80c9c05
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sum.test.js
@@ -1,16 +1,16 @@
const lib = require('./index');

test('Camera', () => {
expect(new lib.camera(70, 10, [7, -7, 5], [64, 0, 47])).toEqual({'fov': 70, 'samples': 10, 'pos': [7, -7, 5], 'rot': [64, 0, 47]});
expect(new lib.Camera(70, 10, [7, -7, 5], [64, 0, 47])).toEqual({'fov': 70, 'samples': 10, 'pos': [7, -7, 5], 'rot': [64, 0, 47]});
});
test('Mesh', () => {
expect(new lib.mesh([1, 1, 1], [1, 1, 1], [1, 1, 1])).toEqual({'points': [1, 1, 1], 'edges': [1, 1, 1], 'faces': [1, 1, 1]});
expect(new lib.Mesh([1, 1, 1], [1, 1, 1], [1, 1, 1])).toEqual({'points': [1, 1, 1], 'edges': [1, 1, 1], 'faces': [1, 1, 1]});
});
test('Item', () => {
expect(new lib.item('cube', [1, 1, 1], [0, 0, 0])).toEqual({'mesh': 'cube', 'pos': [1, 1, 1], 'rot': [0, 0, 0]});
expect(new lib.Item('cube', [1, 1, 1], [0, 0, 0])).toEqual({'mesh': 'cube', 'pos': [1, 1, 1], 'rot': [0, 0, 0]});
});
test('Viewport', () => {
expect(new lib.viewport(100, 100)).toEqual({'width': 100, 'height': 100});
expect(new lib.Viewport(100, 100)).toEqual({'width': 100, 'height': 100});
});
test('Repeat string func', () => {
expect(lib.repeatStringNumTimes('a', 3)).toEqual('aaa');
Expand Down

0 comments on commit 80c9c05

Please sign in to comment.