summaryrefslogtreecommitdiff
path: root/alarm/node_modules/pronote-api/bin/test.js
diff options
context:
space:
mode:
Diffstat (limited to 'alarm/node_modules/pronote-api/bin/test.js')
-rw-r--r--alarm/node_modules/pronote-api/bin/test.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/alarm/node_modules/pronote-api/bin/test.js b/alarm/node_modules/pronote-api/bin/test.js
new file mode 100644
index 0000000..22b43bf
--- /dev/null
+++ b/alarm/node_modules/pronote-api/bin/test.js
@@ -0,0 +1,13 @@
+const { fork } = require('child_process');
+const { join } = require('path');
+
+const DEMO_URL = 'https://demo.index-education.net/pronote/';
+const DEMO_USERNAME = 'demonstration';
+const DEMO_PASSWORD = 'pronotevs';
+
+function test(type)
+{
+ fork(join(__dirname, 'fetch.js'), [DEMO_URL, DEMO_USERNAME, DEMO_PASSWORD, 'none', type], { stdio: 'inherit' });
+}
+
+['student', 'parent'].forEach(test);