How to compare two things in qunit test?

Viewed 53

Qunit test to check if two things are equal.

I have 2 variables i want to compare. var currentVector = scene.up; var expectedVector = new THREE.Vector3( 0, 1, 0 );

they return the following: variables return

assert.equal( currentVector, expectedVector, "Vector y is up in current scene"); 

but the console returns

unit test error

1 Answers
Related