Permalink
Browse files

util, bugfix: correct validation about __GIT_INFO__ in `./test/util_t…

…est.js`. (#461)
  • Loading branch information...
richardo2016 authored and xicilion committed Aug 15, 2018
1 parent bf9d561 commit b8226c9c67385a882bfbedc5b5dd5a418a81d3fd
Showing with 13 additions and 4 deletions.
  1. +13 −4 test/util_test.js
View
@@ -1266,10 +1266,19 @@ describe('util', () => {
describe('buildInfo', () => {
it('properties', () => {
assert.property(util.buildInfo(), 'fibjs');
// clang
// gcc
// msvc
assert.property(util.buildInfo(), 'git');
switch (process.platform) {
case 'win32':
assert.property(util.buildInfo(), 'msvc');
break
case 'darwin':
assert.property(util.buildInfo(), 'clang');
break
case 'freebsd':
case 'linux':
assert.property(util.buildInfo(), 'gcc');
break
}
// git
assert.property(util.buildInfo(), 'date');
// debug
assert.property(util.buildInfo(), 'vender');

0 comments on commit b8226c9

Please sign in to comment.