// Copyright 2020 The Gogs Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package app import ( "testing" "github.com/stretchr/testify/assert" ) func Test_ipynbSanitizer(t *testing.T) { p := ipynbSanitizer() tests := []struct { name string input string want string }{ { name: "allow 'class' and 'data-prompt-number' attributes", input: `