Skip to content

Commit 09ab40d

Browse files
fix: git data source unit test failure (#20875)
1 parent 78b74b7 commit 09ab40d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/data-context/test/unit/sources/GitDataSource.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,19 @@ describe('GitDataSource', () => {
4646
ctx.git.gitInfo(xhrSpec),
4747
])
4848

49-
expect(created.lastModifiedHumanReadable).to.match(/(a few|[0-9]) second?s ago/)
49+
expect(created.lastModifiedHumanReadable).to.match(/(a few|[0-9]) seconds? ago/)
5050
expect(created.statusType).to.eql('created')
5151
// do not want to set this explicitly in the test, since it can mess up your local git instance
5252
expect(created.author).not.to.be.undefined
5353
expect(created.lastModifiedTimestamp).not.to.be.undefined
5454

55-
expect(unmodified.lastModifiedHumanReadable).to.match(/(a few|[0-9]) second?s ago/)
55+
expect(unmodified.lastModifiedHumanReadable).to.match(/(a few|[0-9]) seconds? ago/)
5656
expect(unmodified.statusType).to.eql('unmodified')
5757
// do not want to set this explicitly in the test, since it can mess up your local git instance
5858
expect(unmodified.author).not.to.be.undefined
5959
expect(unmodified.lastModifiedTimestamp).not.to.be.undefined
6060

61-
expect(modified.lastModifiedHumanReadable).to.match(/(a few|[0-9]) second?s ago/)
61+
expect(modified.lastModifiedHumanReadable).to.match(/(a few|[0-9]) seconds? ago/)
6262
expect(modified.statusType).to.eql('modified')
6363
// do not want to set this explicitly in the test, since it can mess up your local git instance
6464
expect(modified.author).not.to.be.undefined

0 commit comments

Comments
 (0)