From 52173903e17625c44c108b4ca2e7bc22f3b76465 Mon Sep 17 00:00:00 2001 From: gpcf Date: Sun, 28 Jul 2024 11:58:39 +0200 Subject: Add unit tests --- spec/fixtures/moderate.conf | 1 + spec/fixtures/xban.db | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 spec/fixtures/moderate.conf create mode 100644 spec/fixtures/xban.db (limited to 'spec/fixtures') diff --git a/spec/fixtures/moderate.conf b/spec/fixtures/moderate.conf new file mode 100644 index 0000000..127f3d6 --- /dev/null +++ b/spec/fixtures/moderate.conf @@ -0,0 +1 @@ +moderate_new_accounts = true \ No newline at end of file diff --git a/spec/fixtures/xban.db b/spec/fixtures/xban.db new file mode 100644 index 0000000..d4d43e5 --- /dev/null +++ b/spec/fixtures/xban.db @@ -0,0 +1,19 @@ +{ + "entries" : + [ + { + "banned" : false, + "last_seen" : 1722115454.0, + "names" : + { + "127.0.0.1" : 1722115454.0, + "admin" : true, + "foobar" : true, + "survivalg" : true + }, + "record" : null + } + ], + "nextclean" : 1722115717.0, + "timestamp" : 1722115470.0 +} -- cgit v1.2.3