From b53bd6df11a8df1d867409b51adc14421ad97517 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 23 Sep 2015 22:23:58 +1200 Subject: Implement first web unit test --- web/tests/010_sanity.t.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'web/tests/010_sanity.t.js') diff --git a/web/tests/010_sanity.t.js b/web/tests/010_sanity.t.js index 9d5636493..a51decd9b 100644 --- a/web/tests/010_sanity.t.js +++ b/web/tests/010_sanity.t.js @@ -1,13 +1,14 @@ -// also supports: startTest(function(t) { StartTest(function(t) { t.diag("Sanity"); - t.ok(Ext, 'ExtJS is here'); - t.ok(Ext.Window, '.. indeed'); + t.ok(Ext, 'Ext is defined'); + t.ok(Ext.Window, 'Ext.Window is defined'); + t.ok(Traccar, 'Traccar is defined'); + t.ok(Traccar.Application, 'Traccar.Application is defined'); - t.ok(Your.Project, 'My project is here'); - t.ok(Your.Project.Util, '.. indeed'); + t.ok(strings, 'strings are defined'); + t.ok(styles, 'styles are defined'); - t.done(); // Optional, marks the correct exit point from the test -}) + t.done(); +}); -- cgit v1.2.3