This commit is contained in:
2017-09-18 15:19:18 +02:00
parent 1f09d67196
commit c269ac04cd
28 changed files with 579 additions and 2431 deletions

19
test/test.ts Normal file
View File

@ -0,0 +1,19 @@
import { expect, tap } from 'tapbundle'
import * as smartdebug from '../ts/index'
let testSmartDebug: smartdebug.SmartDebug
tap.test('should create a valid instance of SmartDebug', async () => {
testSmartDebug = new smartdebug.SmartDebug()
})
tap.test('should not log a message, if debugEnabled = false', async () => {
testSmartDebug.log('should not log to console')
})
tap.test('should log to console, if enabled', async () => {
testSmartDebug.enableDebugging()
testSmartDebug.log('should log to console')
})
tap.start()