mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
test(tooling): remove unused require
This commit is contained in:
@ -1,5 +1,4 @@
|
|||||||
var colors = require('colors'),
|
var fs = require('fs'),
|
||||||
fs = require('fs'),
|
|
||||||
path = require('path'),
|
path = require('path'),
|
||||||
Generate = require('../generate'),
|
Generate = require('../generate'),
|
||||||
_ = require('lodash'),
|
_ = require('lodash'),
|
||||||
@ -48,7 +47,7 @@ describe('#Generate', function() {
|
|||||||
var genOpts = {
|
var genOpts = {
|
||||||
fileAndClassName: 'about',
|
fileAndClassName: 'about',
|
||||||
javascriptClassName: 'About',
|
javascriptClassName: 'About',
|
||||||
name: 'About',
|
name: 'About',
|
||||||
}
|
}
|
||||||
|
|
||||||
expect(generatorSpy.run).toHaveBeenCalledWith(genOpts);
|
expect(generatorSpy.run).toHaveBeenCalledWith(genOpts);
|
||||||
@ -62,7 +61,7 @@ describe('#Generate', function() {
|
|||||||
var genOpts = {
|
var genOpts = {
|
||||||
fileAndClassName: 'about',
|
fileAndClassName: 'about',
|
||||||
javascriptClassName: 'About',
|
javascriptClassName: 'About',
|
||||||
name: 'About',
|
name: 'About',
|
||||||
};
|
};
|
||||||
|
|
||||||
spyOn(fs, 'writeFileSync');
|
spyOn(fs, 'writeFileSync');
|
||||||
@ -71,12 +70,12 @@ describe('#Generate', function() {
|
|||||||
Generate.generate(generatorOptions);
|
Generate.generate(generatorOptions);
|
||||||
|
|
||||||
expect(fs.writeFileSync.calls.length).toBe(3);
|
expect(fs.writeFileSync.calls.length).toBe(3);
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
xdescribe('#page', function() {
|
xdescribe('#page', function() {
|
||||||
|
|
||||||
it('should generate a page at a directory', function() {
|
it('should generate a page at a directory', function() {
|
||||||
//ionic g page about
|
//ionic g page about
|
||||||
@ -144,7 +143,7 @@ describe('#Generate', function() {
|
|||||||
});
|
});
|
||||||
}); //#page
|
}); //#page
|
||||||
|
|
||||||
xdescribe('#directories', function() {
|
xdescribe('#directories', function() {
|
||||||
it('should create directories for scaffolding', function() {
|
it('should create directories for scaffolding', function() {
|
||||||
// pwd = /ionic/app
|
// pwd = /ionic/app
|
||||||
// ionic g page about
|
// ionic g page about
|
||||||
|
|||||||
Reference in New Issue
Block a user