diff options
| author | Xe <me@christine.website> | 2022-11-23 17:57:31 -0500 |
|---|---|---|
| committer | Xe <me@christine.website> | 2022-11-23 17:57:31 -0500 |
| commit | b3af3cfe37ca2282cc849ade502c298efc8a53fb (patch) | |
| tree | 430f4a0b01bb50ee1089b87340b5bcfed8326bd2 /web | |
| parent | e1480c29828549e312cb8569a46a1433205b9476 (diff) | |
| download | x-b3af3cfe37ca2282cc849ade502c298efc8a53fb.tar.xz x-b3af3cfe37ca2282cc849ade502c298efc8a53fb.zip | |
web/mastosan: fix tests
Signed-off-by: Xe <me@christine.website>
Diffstat (limited to 'web')
| -rw-r--r-- | web/mastosan/mastosan_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/mastosan/mastosan_test.go b/web/mastosan/mastosan_test.go index e5f2d53..5ca3881 100644 --- a/web/mastosan/mastosan_test.go +++ b/web/mastosan/mastosan_test.go @@ -18,7 +18,7 @@ func TestHTML2Slackdown(t *testing.T) { t.Run(tt.name, func(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second) defer cancel() - result, err := HTML2Slackdown(ctx, tt.inp) + result, err := Slackdown(ctx, tt.inp) if err != nil { t.Fatal(err) } @@ -41,7 +41,7 @@ func BenchmarkHTML2Slackdown(b *testing.B) { func benchStep(pb *testing.PB) { for pb.Next() { - result, err := HTML2Slackdown(context.Background(), msg) + result, err := Slackdown(context.Background(), msg) if err != nil { panic(err) } |
