Skip to content

Commit

Permalink
[TIMOB-17889] Add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary Mathews authored and sgtcoolguy committed Apr 23, 2018
1 parent 422527a commit 50f07ca
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/Resources/ti.api.addontest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Appcelerator Titanium Mobile
* Copyright (c) 2011-Present 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.
*/
/* eslint-env mocha */
/* global Ti */
/* eslint no-unused-expressions: "off" */
'use strict';
var should = require('./utilities/assertions');

describe('Titanium.API', function () {
it('integer to boolean conversion', function () {
var view = Ti.UI.createView({ bubbleParent: 0 });

should(view.bubbleParent).be.eql(false);
view.bubbleParent = 1;
should(view.bubbleParent).be.eql(true);
});
});

0 comments on commit 50f07ca

Please sign in to comment.