Skip to content

Commit

Permalink
updates tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pastuxso committed Nov 10, 2023
1 parent 3edf287 commit eb94e14
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions internal/document/editor/editorservice/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func Test_IdentityUnspecified(t *testing.T) {
assert.NotRegexp(t, "^\n\n", content)
}

assert.Contains(t, content, "```sh { name=foo id=123 }\n")
assert.Contains(t, content, "```sh {\"id\":\"123\",\"name\":\"foo\"}\n")
}
}

Expand Down Expand Up @@ -152,9 +152,9 @@ func Test_IdentityAll(t *testing.T) {
assert.Contains(t, content, "runme:\n")
assert.Contains(t, content, "id: "+testMockID)
assert.Contains(t, content, "version: "+version.BaseVersion())
assert.Contains(t, content, "```sh { name=foo id="+testMockID+" }\n")
assert.Contains(t, content, "```sh { name=bar id="+testMockID+" }\n")
assert.Contains(t, content, "```js { id="+testMockID+" }\n")
assert.Contains(t, content, "```sh {\"id\":\""+testMockID+"\",\"name\":\"foo\"}\n")
assert.Contains(t, content, "```sh {\"id\":\""+testMockID+"\",\"name\":\"bar\"}\n")
assert.Contains(t, content, "```js {\"id\":\""+testMockID+"\"}\n")
}
}

Expand Down Expand Up @@ -193,8 +193,8 @@ func Test_IdentityDocument(t *testing.T) {
assert.Contains(t, content, "runme:\n")
assert.Contains(t, content, "id: "+testMockID+"\n")
assert.Contains(t, content, "version: "+version.BaseVersion()+"\n")
assert.Contains(t, content, "```sh { name=foo id=123 }\n")
assert.Contains(t, content, "```sh { name=bar }\n")
assert.Contains(t, content, "```sh {\"id\":\"123\",\"name\":\"foo\"}\n")
assert.Contains(t, content, "```sh {\"name\":\"bar\"}\n")
assert.Contains(t, content, "```js\n")
}
}
Expand Down Expand Up @@ -241,9 +241,9 @@ func Test_IdentityCell(t *testing.T) {
assert.NotRegexp(t, "^\n\n", content)
}

assert.Contains(t, content, "```sh { name=foo id="+testMockID+" }\n")
assert.Contains(t, content, "```sh { name=bar id="+testMockID+" }\n")
assert.Contains(t, content, "```js { id="+testMockID+" }\n")
assert.Contains(t, content, "```sh {\"id\":\""+testMockID+"\",\"name\":\"foo\"}\n")
assert.Contains(t, content, "```sh {\"id\":\""+testMockID+"\",\"name\":\"bar\"}\n")
assert.Contains(t, content, "```js {\"id\":\""+testMockID+"\"}\n")
}
}

Expand Down

0 comments on commit eb94e14

Please sign in to comment.