FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nodegit/test/oid.js at emscripten · nodejs-experiments/nodegit · GitHub
nodejs-experiments
nodegit
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
nodegit
/
test
/
oid.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
10 lines (8 loc) · 276 Bytes
Breadcrumbs
nodegit
/
test
/
oid.js
Copy path
File metadata and controls
10 lines (8 loc) · 276 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
var
git
=
require
(
'../'
)
;
var
knownSha
=
'fce88902e66c72b5b93e75bdb5ae717038b221f6'
;
exports
.
fromStringAndSha
=
function
(
test
)
{
test
.
expect
(
1
)
;
var
oid
=
git
.
Oid
.
fromString
(
knownSha
)
;
test
.
equal
(
oid
.
sha
(
)
,
knownSha
,
'SHA should match known value'
)
;
test
.
done
(
)
;
}
;
Back
|
FazBrowse Home
|
New Git URL