test.js 328 B

123456789101112131415161718
  1. 'use strict';
  2. var Assert = require('assert')
  3. var Constants = require('./')
  4. try {
  5. var nodeConstants = require('constants')
  6. Assert.deepEqual(nodeConstants, Constants, 'The constants file was not equal')
  7. }
  8. catch (e) {
  9. console.error(e)
  10. console.error('\nTests failed!')
  11. process.exit(1)
  12. }
  13. console.info('Tests passed!')