[gjs/ewlsh/refactor-argv] Add tests for 'System.programArgs'
- From: Evan Welsh <ewlsh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/ewlsh/refactor-argv] Add tests for 'System.programArgs'
- Date: Mon, 1 Feb 2021 01:26:59 +0000 (UTC)
commit dbc47ba183ff628d9496bc4941d1b7e8adfb2b10
Author: Evan Welsh <contact evanwelsh com>
Date: Sun Jan 31 17:26:54 2021 -0800
Add tests for 'System.programArgs'
installed-tests/js/testSystem.js | 10 ++++++++++
1 file changed, 10 insertions(+)
---
diff --git a/installed-tests/js/testSystem.js b/installed-tests/js/testSystem.js
index 9cd5b8ef..1f278007 100644
--- a/installed-tests/js/testSystem.js
+++ b/installed-tests/js/testSystem.js
@@ -55,3 +55,13 @@ describe('System.dumpHeap()', function () {
expect(() => System.dumpHeap('/does/not/exist')).toThrow();
});
});
+
+describe('System.programArgs', function () {
+ it('System.programArgs is equal to ARGV', function () {
+ expect(System.programArgs).toEqual(ARGV);
+ });
+
+ it('System.programArgs is an array', function () {
+ expect(Array.isArray(System.programArgs)).toBeTruthy();
+ });
+});
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]