1/* 2* common.js unit test 3*/ 4 5describe("glMatrix", function(){ 6 var result; 7 8 var glMatrix = require("../../src/gl-matrix/common.js"); 9 10 describe("toRadian", function(){ 11 beforeEach(function(){ result = glMatrix.toRadian(180); }); 12 it("should return a value of 3.141592654(Math.PI)", function(){ expect(result).toBeEqualish(Math.PI); }); 13 }); 14}); 15