[gjs/ewlsh/refactor-argv: 50/50] Add tests for 'System.programArgs'
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/ewlsh/refactor-argv: 50/50] Add tests for 'System.programArgs'
- Date: Tue, 9 Feb 2021 18:15:18 +0000 (UTC)
commit a2ebd66f6368b7933f3ccb266f40f77f05993650
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..b5b57058 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();
+ });
+});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]