8000 test: Set NODE_ENV before error handling tests. (#3712) · vuejs/vue-router@d76980c · GitHub
[go: up one dir, main page]

Skip to content

Commit d76980c

Browse files
authored
test: Set NODE_ENV before error handling tests. (#3712)
1 parent 5d7afbe commit d76980c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/unit/specs/error-handling.spec.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ import { NavigationFailureType } from '../../../src/util/errors'
55
Vue.use(VueRouter)
66

77
describe('error handling', () => {
8+
beforeEach(function () {
9+
process.env.NODE_ENV = 'development'
10+
})
11+
812
it('onReady errors', done => {
913
const router = new VueRouter()
1014
const err = new Error('foo')

0 commit comments

Comments
 (0)
0