File size: 482 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { expect } from 'chai'

import Router from './router.js'

describe('Router', function () {
  it('has both assets and routes', function () {
    expect(Router.assets).not.to.be.undefined
    expect(Router.routes).not.to.be.undefined
  })

  it('returns development bundle by default', function () {
    const asset = Router.assets.find((a) => a.path === '/frontend/assets/app.bundle.js')

    expect(asset && asset.src).to.contain('scripts/app-bundle.development.js')
  })
})