Fix tests and jshint

This commit is contained in:
Sean Lilley 2017-04-04 17:57:01 -04:00
parent 02c3aa18db
commit bedbb6ef96
2 changed files with 13 additions and 10 deletions

View File

@ -16,6 +16,16 @@ var DeveloperError = Cesium.DeveloperError;
module.exports = convert;
/**
* A callback function that logs messages.
* @callback Logger
*
* @param {String} message The message to log.
*/
var defaultLogger = function(message) {
console.log(message);
};
/**
* Converts an obj file to a glTF file.
*
@ -119,13 +129,3 @@ function convert(objPath, gltfPath, options) {
* @private
*/
convert._outputJson = fsExtraOutputJson;
/**
* A callback function that logs messages.
* @callback Logger
*
* @param {String} message The message to log.
*/
var defaultLogger = function(message) {
console.log(message);
};

View File

@ -40,6 +40,7 @@ describe('convert', function() {
quantize : false,
compressTextureCoordinates : false,
aoOptions : undefined,
kmcOptions : undefined,
smoothNormals : false,
optimizeForCesium : false,
textureCompressionOptions : undefined,
@ -63,6 +64,7 @@ describe('convert', function() {
optimize : true,
generateNormals : true,
ao : true,
kmc : true,
optimizeForCesium : true,
textureCompressionOptions : textureCompressionOptions
};
@ -81,6 +83,7 @@ describe('convert', function() {
quantize : true,
compressTextureCoordinates : true,
aoOptions : {},
kmcOptions : {},
smoothNormals : true,
optimizeForCesium : true,
textureCompressionOptions : textureCompressionOptions,