FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
bitcore/test/docs.js at master · pinkmagicdev/bitcore · GitHub
pinkmagicdev
bitcore
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
bitcore
/
test
/
docs.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
17 lines (13 loc) · 446 Bytes
Breadcrumbs
bitcore
/
test
/
docs.js
Copy path
File metadata and controls
17 lines (13 loc) · 446 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
'use strict'
;
var
chai
=
require
(
'chai'
)
;
var
should
=
chai
.
should
(
)
;
var
bitcore
=
require
(
'..'
)
;
var
fs
=
require
(
'fs'
)
;
describe
(
'Documentation'
,
function
(
)
{
it
(
'major and minor versions should match'
,
function
(
)
{
var
versionRE
=
/
v
[
0
-
9
]
+
\.
[
0
-
9
]
+
/
;
var
docIndex
=
fs
.
readFileSync
(
'./docs/index.md'
,
'ascii'
)
;
var
docVersion
=
docIndex
.
match
(
versionRE
)
[
0
]
;
bitcore
.
version
.
indexOf
(
docVersion
)
.
should
.
equal
(
0
)
;
}
)
;
}
)
;
Back
|
FazBrowse Home
|
New Git URL