FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nodegit/test/tests/packbuilder.js at master · nodegit/nodegit · GitHub
nodegit
nodegit
Repository navigation
Code
Issues
344
(344)
Pull requests
21
(21)
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
nodegit
/
test
/
tests
/
packbuilder.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
25 lines (19 loc) · 628 Bytes
Breadcrumbs
nodegit
/
test
/
tests
/
packbuilder.js
Copy path
File metadata and controls
25 lines (19 loc) · 628 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
24
25
var
assert
=
require
(
"assert"
)
;
var
path
=
require
(
"path"
)
;
var
local
=
path
.
join
.
bind
(
path
,
__dirname
)
;
describe
(
"Packbuilder"
,
function
(
)
{
var
NodeGit
=
require
(
"../../"
)
;
var
Repository
=
NodeGit
.
Repository
;
var
Packbuilder
=
NodeGit
.
Packbuilder
;
var
reposPath
=
local
(
"../repos/workdir"
)
;
beforeEach
(
function
(
)
{
var
test
=
this
;
return
Repository
.
open
(
reposPath
)
.
then
(
function
(
repository
)
{
test
.
repository
=
repository
;
}
)
;
}
)
;
it
(
"can be initialized"
,
function
(
)
{
var
packBuilder
=
Packbuilder
.
create
(
this
.
repository
)
;
assert
(
packBuilder
instanceof
Packbuilder
)
;
}
)
;
}
)
;
Back
|
FazBrowse Home
|
New Git URL