feat(marketing): add security bug bounty policy (#29)
This commit is contained in:
@@ -835,6 +835,21 @@ pub fn render_table_without_outer_pipes_test() {
|
||||
|> should.equal(expected)
|
||||
}
|
||||
|
||||
pub fn render_single_column_table_test() {
|
||||
let markdown =
|
||||
"| In-scope domains |\n|------------------|\n| fluxer.gg |\n| fluxer.gift |\n| fluxerapp.com |"
|
||||
let expected =
|
||||
"<table class=\"border-collapse border border-gray-300 w-full my-4\">\n<thead>\n<tr>\n<th class=\"border border-gray-300 px-4 py-2 bg-gray-50 font-semibold\">In-scope domains</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td class=\"border border-gray-300 px-4 py-2\">fluxer.gg</td>\n</tr>\n<tr>\n<td class=\"border border-gray-300 px-4 py-2\">fluxer.gift</td>\n</tr>\n<tr>\n<td class=\"border border-gray-300 px-4 py-2\">fluxerapp.com</td>\n</tr>\n</tbody>\n</table>"
|
||||
|
||||
render_md.render(
|
||||
markdown,
|
||||
"https://example.com",
|
||||
locale.EnUS,
|
||||
empty_help_data(),
|
||||
)
|
||||
|> should.equal(expected)
|
||||
}
|
||||
|
||||
pub fn render_email_link_test() {
|
||||
render_md.render(
|
||||
"Contact us at privacy@fluxer.app",
|
||||
|
||||
@@ -15,28 +15,8 @@
|
||||
//// You should have received a copy of the GNU Affero General Public License
|
||||
//// along with Fluxer. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
import fluxer_marketing/locale
|
||||
import fluxer_marketing/router
|
||||
import gleeunit
|
||||
import gleeunit/should
|
||||
|
||||
pub fn main() {
|
||||
gleeunit.main()
|
||||
}
|
||||
|
||||
pub fn update_locale_in_article_path_rebuilds_slug_test() {
|
||||
let path = "/help/en-us/articles/1445730947679911936-requesting-data-deletion"
|
||||
|
||||
router.update_locale_in_path(path, locale.Ar)
|
||||
|> should.equal("/help/ar/articles/1445730947679911936-طلب-حذف-البيانات")
|
||||
}
|
||||
|
||||
pub fn update_locale_in_article_path_keeps_extra_segments_test() {
|
||||
let path =
|
||||
"/help/en-us/articles/1445730947679911936-requesting-data-deletion/extra"
|
||||
|
||||
router.update_locale_in_path(path, locale.Ar)
|
||||
|> should.equal(
|
||||
"/help/ar/articles/1445730947679911936-طلب-حذف-البيانات/extra",
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user