UNPKG

ionic

Version:

A tool for creating and developing Ionic Framework mobile apps.

29 lines (21 loc) 779 B
var index = require('../index'); describe('index', function() { it('should have index defined', function() { expect(index).toBeDefined(); }); function testForProperty(input) { it('should have ' + input + ' available', function() { expect(index[input]).toBeDefined(); }); } var objs = ['configXml', 'cordova', 'events', 'hooks', 'info', 'ioConfig', 'login', 'logging', 'multibar', 'project', 'share', 'semver', 'serve', 'settings', 'start', 'state', 'stats', 'upload', 'utils']; // Doing it this way to give better failure messages. // Ensures all commands are available currently from objs.forEach(function(obj) { // expect(index[obj], obj).toBeDefined(); testForProperty(obj); }); });