Skip to content

Commit d42d0b6

Browse files
committed
perf(test:main): reduce number of app generations
1 parent 1f1a81f commit d42d0b6

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/test/main.test.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ describe('angular-fullstack:app', function() {
5858
describe('default settings', function() {
5959
var dir;
6060

61-
beforeEach(function() {
61+
before(function() {
6262
return runGen(defaultOptions).then(_dir => {
6363
dir = _dir;
6464
});
@@ -83,7 +83,7 @@ describe('angular-fullstack:app', function() {
8383
});
8484

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

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

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

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

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

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

@@ -231,7 +231,7 @@ describe('angular-fullstack:app', function() {
231231
});
232232

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

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

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

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

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy