Use blocked scoped variables
In addition to using const and let, this also upgrades our linter config and removes lint (mostly whitespace).
This commit is contained in:
@@ -6,18 +6,18 @@ describe('mat4', function() {
|
||||
describe('mat4.create()', function() {
|
||||
it('returns the expected matrix', function() {
|
||||
expect(create()).to.eql(
|
||||
[1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]);
|
||||
[1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]);
|
||||
});
|
||||
});
|
||||
|
||||
describe('mat4.fromTransform()', function() {
|
||||
it('sets the expected transform on the matrix', function() {
|
||||
var transform = [1, 2, 3, 4, 5, 6];
|
||||
var result = create();
|
||||
const transform = [1, 2, 3, 4, 5, 6];
|
||||
const result = create();
|
||||
expect(fromTransform(result, transform)).to.eql(
|
||||
[1, 2, 0, 0, 3, 4, 0, 0, 0, 0, 1, 0, 5, 6, 0, 1]);
|
||||
[1, 2, 0, 0, 3, 4, 0, 0, 0, 0, 1, 0, 5, 6, 0, 1]);
|
||||
expect(result).to.eql(
|
||||
[1, 2, 0, 0, 3, 4, 0, 0, 0, 0, 1, 0, 5, 6, 0, 1]);
|
||||
[1, 2, 0, 0, 3, 4, 0, 0, 0, 0, 1, 0, 5, 6, 0, 1]);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user