FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
node-harmonize/test.js at master · dcodeIO/node-harmonize · GitHub
This repository was archived by the owner on Jun 5, 2020. It is now read-only.
dcodeIO
/
node-harmonize
Public archive
Notifications
You must be signed in to change notification settings
Fork
6
Star
25
Code
Issues
0
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
node-harmonize
/
test.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
18 lines (15 loc) · 567 Bytes
Breadcrumbs
node-harmonize
/
test.js
Copy path
File metadata and controls
18 lines (15 loc) · 567 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
var
assert
=
require
(
"assert"
)
;
var
harmonize
=
require
(
"./index"
)
;
if
(
!
harmonize
.
enabled
.
length
)
console
.
log
(
"IN PARENT"
)
;
else
console
.
log
(
"IN CHILD"
)
;
harmonize
(
)
;
// code above is executed for both the parent and the child
// code below is executed within the child only
assert
.
deepEqual
(
harmonize
.
enabled
,
[
"harmony"
]
,
"should enable --harmony"
)
;
assert
.
ok
(
harmonize
.
supported
,
"should grep supported flags"
)
;
console
.
log
(
"-- enabled flags --"
)
;
console
.
log
(
harmonize
.
enabled
)
;
console
.
log
(
"-- supported flags --"
)
;
console
.
log
(
harmonize
.
supported
)
;
Back
|
FazBrowse Home
|
New Git URL