summaryrefslogtreecommitdiff
path: root/internal/tests/integration/base64_test.go
blob: 9b500dbc763be6a553682542c7c43424d2142857 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package integration

import (
	"testing"
)

func TestBase64_Encode(t *testing.T) {
	inOutTest(t, `{{ "foo" | base64.Encode }}`, "Zm9v")
}

func TestBase64_Decode(t *testing.T) {
	inOutTest(t, `{{ "Zm9v" | base64.Decode }}`, "foo")
}