Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp-spiess committed Mar 27, 2024
1 parent 0ae2cb1 commit e027255
Showing 1 changed file with 12 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ describe('RecentEditsRetriever', () => {

addNumberLog()

expect(retriever.getDiff(testDocument.uri)).toMatchInlineSnapshot(`
"--- a//test.ts
+++ b//test.ts
@@ -1,7 +1,7 @@
expect(
retriever.getDiff(testDocument.uri)!.split('\n').slice(2).join('\n')
).toMatchInlineSnapshot(`
"@@ -1,7 +1,7 @@
function foo() {
- console.log('foo')
+ console.log(1337)
Expand All @@ -123,13 +123,13 @@ describe('RecentEditsRetriever', () => {
vi.advanceTimersByTime(3 * 60 * 1000)
addNumberLog()

expect(retriever.getDiff(testDocument.uri)).toMatchInlineSnapshot(`
"--- a//test.ts
+++ b//test.ts
@@ -2,6 +2,6 @@
expect(
retriever.getDiff(testDocument.uri)!.split('\n').slice(2).join('\n')
).toMatchInlineSnapshot(`
"@@ -2,6 +2,6 @@
console.log(1337)
}
function bar() {
- console.log('bar')
+ console.log(1338)
Expand Down Expand Up @@ -159,13 +159,11 @@ describe('RecentEditsRetriever', () => {
vi.advanceTimersByTime(3 * 60 * 1000)
addNumberLog(renamedDoc)

expect(retriever.getDiff(newUri)).toMatchInlineSnapshot(`
"--- a//test2.ts
+++ b//test2.ts
@@ -2,6 +2,6 @@
expect(retriever.getDiff(newUri)!.split('\n').slice(2).join('\n')).toMatchInlineSnapshot(`
"@@ -2,6 +2,6 @@
console.log(1337)
}
function bar() {
- console.log('bar')
+ console.log(1338)
Expand Down

0 comments on commit e027255

Please sign in to comment.