/*
 * Copyright (c) 2015-2017 Steven Soloff
 *
 * This is free software: you can redistribute it and/or modify it under the
 * terms of the MIT License (https://opensource.org/licenses/MIT).
 * This software comes with ABSOLUTELY NO WARRANTY.
 */

'use strict'

const express = require('express')
const routes = require('../../src/server/routes')
const securityTest = require('./test-support/security-test')

describe('routes', () => {
  it('should not throw an exception when provided a valid application', () => {
    expect(() => {
      const app = express()
      routes(app, securityTest.getPrivateKey(), securityTest.getPublicKey())
    }).not.toThrow()
  })
})

Add unit tests for routes module
Add unit tests for routes module
