Skip to content

Commit

Permalink
Added deps.js test file that should run first to check for installed …
Browse files Browse the repository at this point in the history
…deps
  • Loading branch information
davglass committed Feb 17, 2011
1 parent a046132 commit 2a3028b
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tests/deps.js
@@ -0,0 +1,26 @@
#!/usr/bin/env node

try {
require('yui3-core@3.2.0');
} catch (e) {
console.log('yui3-core@3.2.0 needs to be installed');
process.exit(1);
}
try {
require('yui3-core@3.3.0');
} catch (e) {
console.log('yui3-core@3.3.0 needs to be installed');
process.exit(1);
}
try {
require('yui3-gallery@2010.09.22');
} catch (e) {
console.log('yui3-gallery@2010.09.22 needs to be installed');
process.exit(1);
}
try {
require('yui3-2in3');
} catch (e) {
console.log('yui3-2in3 needs to be installed');
process.exit(1);
}

0 comments on commit 2a3028b

Please sign in to comment.