Commit addafff2 authored by Mark Stenglein's avatar Mark Stenglein

adds more tests and fixes the content line one

parent e359d321
......@@ -4,9 +4,13 @@ import "mocha";
describe("ContentLine", () => {
it("Should exist", () => {
let result = !ContentLine;
let result = true;
expect(result).to.be.false;
if (typeof ContentLine == undefined) {
result = false;
}
expect(result).to.be.true;
})
})
......@@ -4,6 +4,17 @@ import "mocha";
describe("util", () => {
describe("isAlpha", () => {
it("Should exist", () => {
let result = true;
if (typeof isAlpha == undefined) {
result = false;
}
expect(result).to.be.true;
})
it("Should return false for numbers", () => {
let test = "12345";
let result = isAlpha(test);
......@@ -18,6 +29,13 @@ describe("util", () => {
expect(result).to.be.false;
});
it("Should return false for non-alpha numerics", () => {
let test = ".%3adsk)#";
let result = isAlpha(test);
expect(result).to.be.false;
});
it("Should return true for lowercase alpha", () => {
let test = "abcdef";
let result = isAlpha(test);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment