feat(marketing): add security bug bounty policy (#29)
This commit is contained in:
@@ -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