go-ethereum/internal/cli/markdown_test.go
Arpit Temani 7b25997830
Reciept e2e test (#431)
* initial

* fixed tests

* eip155 tests

* progress

* fix

* fix TestFetchStateSyncEvents*

* debug

* fixed with updated list of validators

* fix

* a bit more stable

* optimize allocations

* linters

* fix vals copy

* a bit of refactoring

* update TestGetTransactionReceiptsByBlock

* remove logs from TestGetTransactionReceiptsByBlock in favour of checks

* comments

* Linters

* linters

* fixes after merge

* fixes after merge

* fixes after merge

* fixes after merge

* fail fast

Co-authored-by: Evgeny Danienko <6655321@bk.ru>
2022-07-14 19:28:56 +03:00

20 lines
287 B
Go

package cli
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestCodeBlock(t *testing.T) {
t.Parallel()
assert := require.New(t)
lines := []string{
"abc",
"bcd",
}
expected := "```\n" + "abc\n" + "bcd\n" + "```"
assert.Equal(expected, CodeBlock(lines))
}