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; 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. * Converts an obj file to a glTF file.
* *
@ -119,13 +129,3 @@ function convert(objPath, gltfPath, options) {
* @private * @private
*/ */
convert._outputJson = fsExtraOutputJson; 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, quantize : false,
compressTextureCoordinates : false, compressTextureCoordinates : false,
aoOptions : undefined, aoOptions : undefined,
kmcOptions : undefined,
smoothNormals : false, smoothNormals : false,
optimizeForCesium : false, optimizeForCesium : false,
textureCompressionOptions : undefined, textureCompressionOptions : undefined,
@ -63,6 +64,7 @@ describe('convert', function() {
optimize : true, optimize : true,
generateNormals : true, generateNormals : true,
ao : true, ao : true,
kmc : true,
optimizeForCesium : true, optimizeForCesium : true,
textureCompressionOptions : textureCompressionOptions textureCompressionOptions : textureCompressionOptions
}; };
@ -81,6 +83,7 @@ describe('convert', function() {
quantize : true, quantize : true,
compressTextureCoordinates : true, compressTextureCoordinates : true,
aoOptions : {}, aoOptions : {},
kmcOptions : {},
smoothNormals : true, smoothNormals : true,
optimizeForCesium : true, optimizeForCesium : true,
textureCompressionOptions : textureCompressionOptions, textureCompressionOptions : textureCompressionOptions,