GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — perf(test:main): reduce number of app generations · angular-fullstack/generator-angular-fullstack@d42d0b6

This repository was archived by the owner on Jul 29, 2026. It is now read-only.

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src/test
    • main.test.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/test/main.test.js‎

Copy file name to clipboardExpand all lines: src/test/main.test.js
+13-13Lines 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 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.