Skip to content

Commit

Permalink
fix(style): running test for style
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTelanie committed Apr 7, 2020
1 parent 5c48c44 commit 742adcb
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions test/style.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { assert } from 'chai';
import { style, templateStyle } from '../src/style';
import { victor } from '../src';

Expand All @@ -19,13 +20,22 @@ describe('style test.', () => {

matrix.position = victor(-5, -6, -7);
matrix.fov = 450;
matrix.position = victor(5, 6, 7);
matrix.rotation = victor(45, 6, 7);

console.log('css vars', matrix.cssVars);

const { cssVars } = matrix;
console.log('css vars', cssVars);
console.log('for template', template);

// assert.equal(formatNumber(0.00000001), '0.00000001');
assert.deepEqual(cssVars, {
'--position-x': -5,
'--position-y': -6,
'--position-z': -7,
'--fov': 450,
'--rotation-x': 45,
'--rotation-y': 6,
'--rotation-z': 7
});

});

Expand Down

0 comments on commit 742adcb

Please sign in to comment.