Rename yellowlabtools.js to index.js and change the way to call it
This commit is contained in:
+4
-4
@@ -2,7 +2,7 @@
|
||||
|
||||
var debug = require('debug')('ylt:cli');
|
||||
|
||||
var YellowLabTools = require('../lib/yellowlabtools');
|
||||
var ylt = require('../lib/index');
|
||||
|
||||
// Check parameters
|
||||
if (process.argv.length !== 3) {
|
||||
@@ -16,10 +16,8 @@ var url = process.argv[2];
|
||||
(function execute(url) {
|
||||
'use strict';
|
||||
|
||||
var ylt = new YellowLabTools(url);
|
||||
debug('Test launched...');
|
||||
ylt(url).
|
||||
|
||||
ylt.
|
||||
then(function(data) {
|
||||
|
||||
debug('Success');
|
||||
@@ -32,4 +30,6 @@ var url = process.argv[2];
|
||||
|
||||
});
|
||||
|
||||
debug('Test launched...');
|
||||
|
||||
})(url);
|
||||
Reference in New Issue
Block a user