Skip to content
Permalink
Browse files
Add test labels from #140 that were missed in #172 (#174)
  • Loading branch information
raphinesse committed Sep 19, 2018
1 parent 3fd5e43 commit a2c78c790e0a79ff974e239ebd8007ebf43a78bb
Showing 4 changed files with 7 additions and 7 deletions.
@@ -73,7 +73,7 @@ describe('argscheck', function () {
var testFunc = createTestFunc(true);
expect(function () { testFunc(null, null, null, null, null, new Date()); }).toThrow('Wrong type for parameter "func" of testFunc: Expected Function, but got Date.');
});
it('should not throw when checking is disabled', function () {
it('Test#011 : should not throw when checking is disabled', function () {
var testFunc = createTestFunc(false);
argscheck.enableChecks = false;
testFunc();
@@ -22,7 +22,7 @@
describe('base64', function () {
var base64 = require('cordova/base64');

it('can base64 encode strings correctly', function () {
it('Test#001 : can base64 encode strings correctly', function () {
var arrayBuffer = new ArrayBuffer(6);
var view = new Uint8Array(arrayBuffer);
for (var i = 0; i < view.length; i++) {
@@ -36,7 +36,7 @@ describe('base64', function () {
expect(base64.fromArrayBuffer(arrayBuffer)).toBe('AAECAwQF');
});

it('can base64 encode a binary string in an ArrayBuffer', function () {
it('Test#002 : can base64 encode a binary string in an ArrayBuffer', function () {
var arrayBuffer = new ArrayBuffer(256);
var view = new Uint8Array(arrayBuffer);
/* eslint-disable no-undef */
@@ -49,7 +49,7 @@ describe('base64', function () {
expect(base64.fromArrayBuffer(arrayBuffer)).toBe(base64string);
});

it('can base64 encode an text string in an ArrayBuffer', function () {
it('Test#003 : can base64 encode an text string in an ArrayBuffer', function () {
var orig = 'Some Awesome Test This Is!';
var base64string = typeof btoa !== 'undefined' ? btoa(orig) : Buffer.from('Some Awesome Test This Is!', 'binary').toString('base64');
var arrayBuffer = new ArrayBuffer(orig.length);
@@ -62,7 +62,7 @@ describe('base64', function () {
expect(base64.fromArrayBuffer(arrayBuffer)).toBe(base64string);
});

it('can decode a base64-encoded text string into an ArrayBuffer', function () {
it('Test#004 : can decode a base64-encoded text string into an ArrayBuffer', function () {
var orig = 'Some Awesome Test This Is!';
var base64string = typeof btoa !== 'undefined' ? btoa(orig) : Buffer.from(orig, 'binary').toString('base64');
/* eslint-enable no-undef */
@@ -336,7 +336,7 @@ describe('channel', function () {
});
});
describe('onHasSubscribersChange', function () {
it('should be called only when the first subscriber is added and last subscriber is removed.', function () {
it('Test#027 : should be called only when the first subscriber is added and last subscriber is removed.', function () {
var handler = jasmine.createSpy().andCallFake(function () {
if (callCount(handler) === 1) {
expect(this.numHandlers).toEqual(1);
@@ -38,7 +38,7 @@ describe('utils', function () {
});

describe('utils.arrayRemove', function () {
it('should return true when removed.', function () {
it('Test#005 : should return true when removed.', function () {
var a = [1, 2, 3];
expect(utils.arrayRemove(a, 2)).toBe(true);
expect(a).toEqual([1, 3]);

0 comments on commit a2c78c7

Please sign in to comment.