This commit expands the test coverage for the `chachapoly` package to include error and edge cases. It also adds `go.sum` to the `.gitignore` file.
14 lines
208 B
TypeScript
14 lines
208 B
TypeScript
export class EnchantrixLog {
|
|
|
|
constructor(entry: string, level: number = 1) {
|
|
switch (level) {
|
|
case 0:
|
|
break;
|
|
case 1:
|
|
console.log(entry)
|
|
break
|
|
case 2:
|
|
console.warn(entry)
|
|
}
|
|
}
|
|
}
|