aswi2020vldc-gitlab/templetes/node_modules/constants-browserify/test.js @ 10920ea3
1 | 3a515b92 | cagy | 'use strict'; |
---|---|---|---|
2 | |||
3 | var Assert = require('assert') |
||
4 | var Constants = require('./') |
||
5 | |||
6 | try { |
||
7 | var nodeConstants = require('constants') |
||
8 | |||
9 | Assert.deepEqual(nodeConstants, Constants, 'The constants file was not equal') |
||
10 | }
|
||
11 | |||
12 | catch (e) { |
||
13 | console.error(e) |
||
14 | console.error('\nTests failed!') |
||
15 | process.exit(1) |
||
16 | }
|
||
17 | |||
18 | console.info('Tests passed!') |