Skip to content

Commit

Permalink
[TIMOB-13379] Add unit test for time/timeEnd
Browse files Browse the repository at this point in the history
  • Loading branch information
ewanharris committed Mar 6, 2018
1 parent d58b771 commit e6fd813
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/Resources/ti.builtin.addontest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* 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 e6fd813

Please sign in to comment.