@@ -5,7 +5,7 @@ var Promise = require("nodegit-promise");
55var promisify = require ( "promisify-node" ) ;
66var fse = promisify ( require ( "fs-extra" ) ) ;
77
8- describe ( "Index" , function ( ) {
8+ describe . only ( "Index" , function ( ) {
99 var Repository = require ( local ( "../../lib/repository" ) ) ;
1010
1111 var reposPath = local ( "../repos/workdir/.git" ) ;
@@ -30,7 +30,7 @@ describe("Index", function() {
3030 it ( "can get the index of a repo and examine entries" , function ( ) {
3131 var entries = this . index . entries ( ) ;
3232
33- assert . equal ( entries [ 0 ] . path ( ) , ".gitignore" ) ;
33+ assert . equal ( entries [ 0 ] . path , ".gitignore" ) ;
3434 } ) ;
3535
3636 it ( "can add all entries to the index" , function ( ) {
@@ -50,7 +50,7 @@ describe("Index", function() {
5050 } )
5151 . then ( function ( ) {
5252 var newFiles = index . entries ( ) . filter ( function ( entry ) {
53- return ~ fileNames . indexOf ( entry . path ( ) ) ;
53+ return ~ fileNames . indexOf ( entry . path ) ;
5454 } ) ;
5555
5656 assert . equal ( newFiles . length , 2 ) ;
@@ -83,7 +83,7 @@ describe("Index", function() {
8383 } )
8484 . then ( function ( ) {
8585 var newFiles = index . entries ( ) . filter ( function ( entry ) {
86- return ~ fileNames . indexOf ( entry . path ( ) ) ;
86+ return ~ fileNames . indexOf ( entry . path ) ;
8787 } ) ;
8888
8989 assert . equal ( newFiles . length , 3 ) ;
@@ -92,7 +92,7 @@ describe("Index", function() {
9292 } )
9393 . then ( function ( ) {
9494 var newFiles = index . entries ( ) . filter ( function ( entry ) {
95- return ~ fileNames . indexOf ( entry . path ( ) ) ;
95+ return ~ fileNames . indexOf ( entry . path ) ;
9696 } ) ;
9797
9898 assert . equal ( newFiles . length , 1 ) ;
@@ -124,7 +124,7 @@ describe("Index", function() {
124124 } )
125125 . then ( function ( ) {
126126 var newFiles = index . entries ( ) . filter ( function ( entry ) {
127- return ~ fileNames . indexOf ( entry . path ( ) ) ;
127+ return ~ fileNames . indexOf ( entry . path ) ;
128128 } ) ;
129129
130130 assert . equal ( newFiles . length , 2 ) ;
@@ -136,7 +136,7 @@ describe("Index", function() {
136136 } )
137137 . then ( function ( ) {
138138 var newFiles = index . entries ( ) . filter ( function ( entry ) {
139- return ~ fileNames . indexOf ( entry . path ( ) ) ;
139+ return ~ fileNames . indexOf ( entry . path ) ;
140140 } ) ;
141141
142142 assert . equal ( newFiles . length , 1 ) ;
0 commit comments