FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nodegit.nodegit/test/tests/status_file.js at master · javascript-forks/nodegit.nodegit · GitHub
javascript-forks
nodegit.nodegit
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
nodegit.nodegit
/
test
/
tests
/
status_file.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
23 lines (18 loc) · 604 Bytes
Breadcrumbs
nodegit.nodegit
/
test
/
tests
/
status_file.js
Copy path
File metadata and controls
23 lines (18 loc) · 604 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
19
20
21
22
23
var
assert
=
require
(
"assert"
)
;
describe
(
"StatusFile"
,
function
(
)
{
var
NodeGit
=
require
(
"../../"
)
;
var
Status
=
NodeGit
.
Status
;
var
StatusFile
=
NodeGit
.
StatusFile
;
var
pathName
=
"README.md"
;
var
statusCode
=
Status
.
STATUS
.
WT_NEW
;
before
(
function
(
)
{
this
.
status
=
new
StatusFile
(
{
path
:
pathName
,
status
:
statusCode
}
)
;
}
)
;
it
(
"passes the path to the working function"
,
function
(
)
{
assert
.
equal
(
this
.
status
.
path
(
)
,
pathName
)
;
}
)
;
it
(
"identifies the proper statuses"
,
function
(
)
{
assert
.
ok
(
this
.
status
.
isNew
(
)
)
;
assert
.
ok
(
!
this
.
status
.
isModified
(
)
)
;
}
)
;
}
)
;
Back
|
FazBrowse Home
|
New Git URL