@@ -25,38 +25,51 @@ describe("git log", function() {
25
25
packedRepo = new Repo ( path . join ( __dirname , "../../test/fixtures/test-repo1-packed/.git" ) )
26
26
} )
27
27
28
- var expectLogOutput =
28
+ var expectPackedLogOutput =
29
29
"commit 9f00c2ee854534a785ff01115a94a50c9961610d\n" +
30
30
"Author: Daniel Lucraft <[email protected] >\n" +
31
- "Date: Mon Jan 03 2011 07:22:59 GMT +0000 (GMT) \n" +
31
+ "Date: Mon, 03 Jan 2011 07:22:59 +0000\n" +
32
32
"\n" +
33
33
"Modifiying master\n" +
34
34
"\n" +
35
35
"commit d0a9e5b650718445b53cd1cab40d21fb3891c98a\n" +
36
36
"Author: Daniel Lucraft <[email protected] >\n" +
37
- "Date: Mon Jan 03 2011 07:14:11 GMT +0000 (GMT) \n" +
37
+ "Date: Mon, 03 Jan 2011 07:14:11 +0000\n" +
38
38
"\n" +
39
39
"Modify README\n" +
40
40
"\n" +
41
41
"commit b3453be87b70a0c5dea28aacd49cf34ddb91a8c5\n" +
42
42
"Author: Daniel Lucraft <[email protected] >\n" +
43
- "Date: Mon Dec 27 2010 12:59:13 GMT +0000 (GMT) \n" +
43
+ "Date: Mon, 27 Dec 2010 12:59:13 +0000\n" +
44
44
"\n" +
45
45
"Add sample files"
46
-
46
+
47
+ var expectLooseLogOutput =
48
+ 'commit 8e8b973cde2e6470626dedfc5d82716d1450dcda\n' +
49
+ 'Author: Daniel Lucraft <[email protected] >\n' +
50
+ 'Date: Mon, 03 Jan 2011 07:08:07 +0000\n' +
51
+ '\n' +
52
+ 'Thoroughly modified the README\n' +
53
+ '\n' +
54
+ 'commit b3453be87b70a0c5dea28aacd49cf34ddb91a8c5\n' +
55
+ 'Author: Daniel Lucraft <[email protected] >\n' +
56
+ 'Date: Mon, 27 Dec 2010 12:59:12 +0000\n' +
57
+ '\n' +
58
+ 'Add sample files'
59
+
47
60
it ( "should show a list of branches, with the current highlighted (loose)" , function ( ) {
48
61
var cmd = new LogCommand ( looseRepo , [ ] )
49
62
50
63
expectOutput ( cmd , function ( output ) {
51
- expect ( output ) . toEqual ( expectLogOutput )
64
+ expect ( output ) . toEqual ( expectLooseLogOutput )
52
65
} )
53
66
} )
54
67
55
68
it ( "should show a list of branches, with the current highlighted (packed)" , function ( ) {
56
69
var cmd = new LogCommand ( packedRepo , [ ] )
57
70
58
71
expectOutput ( cmd , function ( output ) {
59
- expect ( output ) . toEqual ( expectLogOutput )
72
+ expect ( output ) . toEqual ( expectPackedLogOutput )
60
73
} )
61
74
} )
62
75
} )
0 commit comments