1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Add Unit Tests for Phase Constants (#6139)

This commit is contained in:
Connor Davis 2019-01-25 19:56:18 -06:00 committed by Tim Neutkens
parent e46fdd6546
commit 22a57e493a

View file

@ -0,0 +1,11 @@
/* eslint-env jest */
import {PHASE_EXPORT, PHASE_PRODUCTION_BUILD, PHASE_PRODUCTION_SERVER, PHASE_DEVELOPMENT_SERVER} from 'next/constants'
describe('phaseConstants', () => {
it('should set phases correctly', () => {
expect(PHASE_EXPORT).toBe('phase-export')
expect(PHASE_PRODUCTION_BUILD).toBe('phase-production-build')
expect(PHASE_PRODUCTION_SERVER).toBe('phase-production-server')
expect(PHASE_DEVELOPMENT_SERVER).toBe('phase-development-server')
})
})