From 1c642390e08bef43cfe1fa75cf6be996b89e46b7 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 30 Jun 2018 22:49:27 +0200 Subject: [PATCH] More tests --- tests/Models/AccountTest.js | 12 ------------ tests/Utils/GeneralUtilsTest.js | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 12 deletions(-) delete mode 100644 tests/Models/AccountTest.js create mode 100644 tests/Utils/GeneralUtilsTest.js diff --git a/tests/Models/AccountTest.js b/tests/Models/AccountTest.js deleted file mode 100644 index 56e3a1d..0000000 --- a/tests/Models/AccountTest.js +++ /dev/null @@ -1,12 +0,0 @@ -describe('AccountTest', function () -{ - "use strict"; - - beforeEach(function () - { - }); - - afterEach(function () - { - }); -}); diff --git a/tests/Utils/GeneralUtilsTest.js b/tests/Utils/GeneralUtilsTest.js new file mode 100644 index 0000000..ac4e537 --- /dev/null +++ b/tests/Utils/GeneralUtilsTest.js @@ -0,0 +1,19 @@ +describe('GeneralUtilsTest', function () +{ + "use strict"; + + describe('testIsset', function () + { + it('Testing isset functionality', function () + { + let value; + expect(jsOMS.isset(value)).toBeFalsy(); + expect(jsOMS.isset(null)).toBeFalsy(); + + expect(jsOMS.isset('')).toBeTruthy(); + + let value3 = 1; + expect(jsOMS.isset(value3)).toBeTruthy(); + }); + }); +}); \ No newline at end of file