Added minified files to tests
parent
b3455abcb9
commit
44ea2552ba
2
Makefile
2
Makefile
|
@ -38,7 +38,7 @@ COMBINE=${PATH_TOOLS}/combine
|
||||||
.PHONY: combine doc test test-combine
|
.PHONY: combine doc test test-combine
|
||||||
|
|
||||||
|
|
||||||
default: combine
|
default: combine min
|
||||||
all: combine doc
|
all: combine doc
|
||||||
|
|
||||||
# create build dir
|
# create build dir
|
||||||
|
|
|
@ -34,7 +34,8 @@ var common = require( './common' ),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
var files = [ 'ease.js', 'ease-full.js' ],
|
// test all combined files, including minified files
|
||||||
|
var files = [ 'ease.js', 'ease-full.js', 'ease.min.js', 'ease-full.min.js' ],
|
||||||
file = '',
|
file = '',
|
||||||
i = files.length;
|
i = files.length;
|
||||||
|
|
||||||
|
@ -52,7 +53,8 @@ while ( i-- )
|
||||||
{
|
{
|
||||||
// if the file doesn't exit, just skip the test
|
// if the file doesn't exit, just skip the test
|
||||||
console.log(
|
console.log(
|
||||||
"Combined file not found. Test skipped. Please run `make combined`."
|
"Combined/minified file not found. Test skipped. Please run " +
|
||||||
|
"`make min`."
|
||||||
);
|
);
|
||||||
process.exit( 0 );
|
process.exit( 0 );
|
||||||
}
|
}
|
||||||
|
@ -92,7 +94,7 @@ while ( i-- )
|
||||||
} );
|
} );
|
||||||
|
|
||||||
// the full file has tests included to be run client-side
|
// the full file has tests included to be run client-side
|
||||||
if ( file === 'ease-full.js' )
|
if ( file.match( /ease-full/ ) )
|
||||||
{
|
{
|
||||||
assert.ok(
|
assert.ok(
|
||||||
( typeof sandbox.easejs.runTests === 'function' ),
|
( typeof sandbox.easejs.runTests === 'function' ),
|
||||||
|
|
Loading…
Reference in New Issue