diff --git a/test/Typertext/BaseException.test.js b/test/Typertext/BaseException.test.js new file mode 100644 index 0000000..94ca2cd --- /dev/null +++ b/test/Typertext/BaseException.test.js @@ -0,0 +1,16 @@ +describe("Typertext.BaseException", function () { + it("exists", function () { + expect(typeof Typertext.BaseException).toEqual("function"); + }); + + it("works", function () { + var inputString = "Test message", + inputCode = 239, + inputCustom = -1, + testClass = new Typertext.Http.HttpException(inputString, inputCode, inputCustom); + + expect(testClass.GetCode()).toEqual(inputCode); + expect(testClass.GetCustom()).toEqual(inputCustom); + expect(testClass.GetMessage()).toEqual(inputString); + }); +}); \ No newline at end of file