How to use the jasmine.jasmine function in jasmine

To help you get started, we’ve selected a few jasmine examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github appcelerator / alloy / test / lib / runtimeTester.js View on Github external
var _ = require('lodash'),
	__j = require('jasmine'),
	CR = require('ConsoleReporter'),
	describe = __j.describe,
	it = __j.it,
	expect = __j.expect,
	jasmine = __j.jasmine,
	beforeEach = __j.beforeEach;

// These are in alphabetical order. It's not an accident. Keep it that way.
var apiChecks = {
	'Ti.UI.Button': function(o) {
		expect(o).toHaveFunction('setTitle');
	},
	'Ti.UI.ImageView': function(o) {
		expect(o).toHaveFunction('pause');
	},
	'Ti.UI.iOS.CoverFlowView': function(o) {
		expect(o).toHaveFunction('getImages');
	},
	'Ti.UI.iPhone.NavigationGroup': function(o) {
		apiChecks['Ti.UI.Window'](o.window);
	},
github appcelerator / alloy / samples / lib / runtimeTester.js View on Github external
var _ = require('alloy/underscore')._,
	__j = require('jasmine'),
	CR = require('ConsoleReporter'),
	describe = __j.describe,
	it = __j.it,
	expect = __j.expect,
	jasmine = __j.jasmine,
	beforeEach = __j.beforeEach;

// These are in alphabetical order. It's not an accident. Keep it that way.
var apiChecks = {
	'Ti.UI.Button': function(o) {
		expect(o).toHaveFunction('setTitle');
	},
	'Ti.UI.ImageView': function(o) {
		expect(o).toHaveFunction('pause');
	},
	'Ti.UI.iOS.CoverFlowView': function(o) {
		expect(o).toHaveFunction('getImages');
	},
	'Ti.UI.iPhone.NavigationGroup': function(o) {
		apiChecks['Ti.UI.Window'](o.window);
	},