| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -58,7 +58,7 @@ describe('angular-fullstack:app', function() { | |||
| 58 | 58 | describe('default settings', function() { | |
| 59 | 59 | var dir; | |
| 60 | 60 | ||
| 61 | - beforeEach(function() { | ||
| 61 | + before(function() { | ||
| 62 | 62 | return runGen(defaultOptions).then(_dir => { | |
| 63 | 63 | dir = _dir; | |
| 64 | 64 | }); | |
@@ -83,7 +83,7 @@ describe('angular-fullstack:app', function() { | |||
| 83 | 83 | }); | |
| 84 | 84 | ||
| 85 | 85 | describe('with a generated endpoint', function() { | |
| 86 | - beforeEach(function() { | ||
| 86 | + before(function() { | ||
| 87 | 87 | return readJSON(path.join(dir, '.yo-rc.json')).then(config => { | |
| 88 | 88 | return runEndpointGen('foo', {config: config['generator-angular-fullstack']}); | |
| 89 | 89 | }); | |
@@ -95,9 +95,9 @@ describe('angular-fullstack:app', function() { | |||
| 95 | 95 | }); | |
| 96 | 96 | ||
| 97 | 97 | describe('with a generated capitalized endpoint', function() { | |
| 98 | - beforeEach(function() { | ||
| 98 | + before(function() { | ||
| 99 | 99 | 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']}); | ||
| 101 | 101 | }); | |
| 102 | 102 | }); | |
| 103 | 103 | ||
@@ -107,9 +107,9 @@ describe('angular-fullstack:app', function() { | |||
| 107 | 107 | }); | |
| 108 | 108 | ||
| 109 | 109 | describe('with a generated path name endpoint', function() { | |
| 110 | - beforeEach(function() { | ||
| 110 | + before(function() { | ||
| 111 | 111 | 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']}); | ||
| 113 | 113 | }); | |
| 114 | 114 | }); | |
| 115 | 115 | ||
@@ -119,9 +119,9 @@ describe('angular-fullstack:app', function() { | |||
| 119 | 119 | }); | |
| 120 | 120 | ||
| 121 | 121 | describe('with a generated snake-case endpoint', function() { | |
| 122 | - beforeEach(function() { | ||
| 122 | + before(function() { | ||
| 123 | 123 | 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']}); | ||
| 125 | 125 | }); | |
| 126 | 126 | }); | |
| 127 | 127 | ||
@@ -231,7 +231,7 @@ describe('angular-fullstack:app', function() { | |||
| 231 | 231 | }); | |
| 232 | 232 | ||
| 233 | 233 | describe('with a generated endpoint', function() { | |
| 234 | - beforeEach(function() { | ||
| 234 | + before(function() { | ||
| 235 | 235 | return readJSON(path.join(dir, '.yo-rc.json')).then(config => { | |
| 236 | 236 | return runEndpointGen('foo', {config: config['generator-angular-fullstack']}); | |
| 237 | 237 | }); | |
@@ -276,7 +276,7 @@ describe('angular-fullstack:app', function() { | |||
| 276 | 276 | }; | |
| 277 | 277 | this.retries(3); // Sequelize seems to be quite flaky | |
| 278 | 278 | ||
| 279 | - beforeEach(function() { | ||
| 279 | + before(function() { | ||
| 280 | 280 | return runGen(testOptions).then(_dir => { | |
| 281 | 281 | dir = _dir; | |
| 282 | 282 | lintResult = runCmd('gulp lint:scripts'); | |
@@ -303,7 +303,7 @@ describe('angular-fullstack:app', function() { | |||
| 303 | 303 | }); | |
| 304 | 304 | ||
| 305 | 305 | describe.skip('with a generated endpoint', function() { | |
| 306 | - beforeEach(function() { | ||
| 306 | + before(function() { | ||
| 307 | 307 | return readJSON(path.join(dir, '.yo-rc.json')).then(config => { | |
| 308 | 308 | return runEndpointGen('foo', {config: config['generator-angular-fullstack']}); | |
| 309 | 309 | }); | |
@@ -348,7 +348,7 @@ describe('angular-fullstack:app', function() { | |||
| 348 | 348 | uibootstrap: false | |
| 349 | 349 | }; | |
| 350 | 350 | ||
| 351 | - beforeEach(function() { | ||
| 351 | + before(function() { | ||
| 352 | 352 | return runGen(testOptions, {options: {devPort: '9005'}}).then(_dir => { | |
| 353 | 353 | dir = _dir; | |
| 354 | 354 | lintResult = runCmd('gulp lint:scripts'); | |
@@ -376,7 +376,7 @@ describe('angular-fullstack:app', function() { | |||
| 376 | 376 | }); | |
| 377 | 377 | ||
| 378 | 378 | describe('with a generated endpoint', function() { | |
| 379 | - beforeEach(function() { | ||
| 379 | + before(function() { | ||
| 380 | 380 | return readJSON(path.join(dir, '.yo-rc.json')).then(config => { | |
| 381 | 381 | return runEndpointGen('foo', {config: config['generator-angular-fullstack']}); | |
| 382 | 382 | }); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments