Skip to content

Commit

Permalink
[TIMOB-13379] Add unit test for time/timeEnd
Browse files Browse the repository at this point in the history
[TIMOB-13379] Fix lint issue
  • Loading branch information
ewanharris committed Mar 6, 2018
1 parent d58b771 commit 744ea03
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/Resources/ti.builtin.addontest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
'use strict';
/*
* Appcelerator Titanium Mobile
* Copyright (c) 2011-2014 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
var should = require('./utilities/assertions');

//
// Unit test for Titanium events and some other global functions
//
describe('Global', function () {
// make sure we have console.time
it('console.time', function () {
should(console.time).be.a.Function;
});
// make sure we have console.timeEnd
it('console.timeEnd', function () {
should(console.timeEnd).be.a.Function;
});
});

0 comments on commit 744ea03

Please sign in to comment.