Skip to content

Commit

Permalink
perf(test:main): reduce number of app generations
Browse files Browse the repository at this point in the history
  • Loading branch information
Awk34 committed Jan 25, 2017
1 parent 1f1a81f commit d42d0b6
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/test/main.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe('angular-fullstack:app', function() {
describe('default settings', function() {
var dir;

beforeEach(function() {
before(function() {
return runGen(defaultOptions).then(_dir => {
dir = _dir;
});
Expand All @@ -83,7 +83,7 @@ describe('angular-fullstack:app', function() {
});

describe('with a generated endpoint', function() {
beforeEach(function() {
before(function() {
return readJSON(path.join(dir, '.yo-rc.json')).then(config => {
return runEndpointGen('foo', {config: config['generator-angular-fullstack']});
});
Expand All @@ -95,9 +95,9 @@ describe('angular-fullstack:app', function() {
});

describe('with a generated capitalized endpoint', function() {
beforeEach(function() {
before(function() {
return readJSON(path.join(dir, '.yo-rc.json')).then(config => {
return runEndpointGen('Foo', {config: config['generator-angular-fullstack']});
return runEndpointGen('Bar', {config: config['generator-angular-fullstack']});
});
});

Expand All @@ -107,9 +107,9 @@ describe('angular-fullstack:app', function() {
});

describe('with a generated path name endpoint', function() {
beforeEach(function() {
before(function() {
return readJSON(path.join(dir, '.yo-rc.json')).then(config => {
return runEndpointGen('foo/bar', {config: config['generator-angular-fullstack']});
return runEndpointGen('foo/baz', {config: config['generator-angular-fullstack']});
});
});

Expand All @@ -119,9 +119,9 @@ describe('angular-fullstack:app', function() {
});

describe('with a generated snake-case endpoint', function() {
beforeEach(function() {
before(function() {
return readJSON(path.join(dir, '.yo-rc.json')).then(config => {
return runEndpointGen('foo-bar', {config: config['generator-angular-fullstack']});
return runEndpointGen('foo-boo', {config: config['generator-angular-fullstack']});
});
});

Expand Down Expand Up @@ -231,7 +231,7 @@ describe('angular-fullstack:app', function() {
});

describe('with a generated endpoint', function() {
beforeEach(function() {
before(function() {
return readJSON(path.join(dir, '.yo-rc.json')).then(config => {
return runEndpointGen('foo', {config: config['generator-angular-fullstack']});
});
Expand Down Expand Up @@ -276,7 +276,7 @@ describe('angular-fullstack:app', function() {
};
this.retries(3); // Sequelize seems to be quite flaky

beforeEach(function() {
before(function() {
return runGen(testOptions).then(_dir => {
dir = _dir;
lintResult = runCmd('gulp lint:scripts');
Expand All @@ -303,7 +303,7 @@ describe('angular-fullstack:app', function() {
});

describe.skip('with a generated endpoint', function() {
beforeEach(function() {
before(function() {
return readJSON(path.join(dir, '.yo-rc.json')).then(config => {
return runEndpointGen('foo', {config: config['generator-angular-fullstack']});
});
Expand Down Expand Up @@ -348,7 +348,7 @@ describe('angular-fullstack:app', function() {
uibootstrap: false
};

beforeEach(function() {
before(function() {
return runGen(testOptions, {options: {devPort: '9005'}}).then(_dir => {
dir = _dir;
lintResult = runCmd('gulp lint:scripts');
Expand Down Expand Up @@ -376,7 +376,7 @@ describe('angular-fullstack:app', function() {
});

describe('with a generated endpoint', function() {
beforeEach(function() {
before(function() {
return readJSON(path.join(dir, '.yo-rc.json')).then(config => {
return runEndpointGen('foo', {config: config['generator-angular-fullstack']});
});
Expand Down

0 comments on commit d42d0b6

Please sign in to comment.