diff --git a/PayPal-Cordova-Plugin/PayPal-Cordova-Plugin-test.ts b/PayPal-Cordova-Plugin/PayPal-Cordova-Plugin-tests.ts
similarity index 100%
rename from PayPal-Cordova-Plugin/PayPal-Cordova-Plugin-test.ts
rename to PayPal-Cordova-Plugin/PayPal-Cordova-Plugin-tests.ts
diff --git a/acl/acl-redisBackend-test.ts b/acl/acl-redisBackend-tests.ts
similarity index 100%
rename from acl/acl-redisBackend-test.ts
rename to acl/acl-redisBackend-tests.ts
diff --git a/angular-growl-v2/angular-growl-v2-test.ts b/angular-growl-v2/angular-growl-v2-tests.ts
similarity index 100%
rename from angular-growl-v2/angular-growl-v2-test.ts
rename to angular-growl-v2/angular-growl-v2-tests.ts
diff --git a/archiver/archiver-test.ts b/archiver/archiver-tests.ts
similarity index 100%
rename from archiver/archiver-test.ts
rename to archiver/archiver-tests.ts
diff --git a/bingmaps/bingmaps-test.ts b/bingmaps/bingmaps-tests.ts
similarity index 98%
rename from bingmaps/bingmaps-test.ts
rename to bingmaps/bingmaps-tests.ts
index bccc5c8f284ec2..5842ee82df1ae8 100644
--- a/bingmaps/bingmaps-test.ts
+++ b/bingmaps/bingmaps-tests.ts
@@ -1,4 +1,4 @@
-///
+///
///
///
///
@@ -55,7 +55,7 @@ module BingMapsTests {
locations.push(location);
}
- // Sets the view of the map to the smallest size that contains all of the
+ // Sets the view of the map to the smallest size that contains all of the
// specified locations (in this case the pusphin locations)
map.setView({ bounds: Microsoft.Maps.LocationRect.fromLocations(locations) });
}
diff --git a/bootstrap-notify/bootstrap-notify-test.ts b/bootstrap-notify/bootstrap-notify-tests.ts
similarity index 98%
rename from bootstrap-notify/bootstrap-notify-test.ts
rename to bootstrap-notify/bootstrap-notify-tests.ts
index a71a8355797e70..8461da8e4843f2 100644
--- a/bootstrap-notify/bootstrap-notify-test.ts
+++ b/bootstrap-notify/bootstrap-notify-tests.ts
@@ -1,9 +1,9 @@
///
///
-
+
//Test for bootstrap-notify v3.1.3
//Copied example directly from Bootstrap-notify site
-
+
$.notify({
// options
icon: 'glyphicon glyphicon-warning-sign',
@@ -48,5 +48,5 @@ $.notify({
'
' +
'' +
'' +
- ''
+ ''
});
\ No newline at end of file
diff --git a/bunyan-logentries/bunyan-logentries-test.ts b/bunyan-logentries/bunyan-logentries-tests.ts
similarity index 100%
rename from bunyan-logentries/bunyan-logentries-test.ts
rename to bunyan-logentries/bunyan-logentries-tests.ts
diff --git a/bunyan/bunyan-test.ts b/bunyan/bunyan-tests.ts
similarity index 100%
rename from bunyan/bunyan-test.ts
rename to bunyan/bunyan-tests.ts
diff --git a/content-type/content-type-test.ts b/content-type/content-type-tests.ts
similarity index 100%
rename from content-type/content-type-test.ts
rename to content-type/content-type-tests.ts
diff --git a/cookie/cookie-test.ts b/cookie/cookie-tests.ts
similarity index 100%
rename from cookie/cookie-test.ts
rename to cookie/cookie-tests.ts
diff --git a/di-lite/di-lite-test.ts b/di-lite/di-lite-tests.ts
similarity index 100%
rename from di-lite/di-lite-test.ts
rename to di-lite/di-lite-tests.ts
diff --git a/eventemitter3/eventemitter3-test.ts b/eventemitter3/eventemitter3-tests.ts
similarity index 97%
rename from eventemitter3/eventemitter3-test.ts
rename to eventemitter3/eventemitter3-tests.ts
index 05138ab34e84bb..da13434135885d 100644
--- a/eventemitter3/eventemitter3-test.ts
+++ b/eventemitter3/eventemitter3-tests.ts
@@ -5,18 +5,18 @@ import EventEmitter = require('eventemitter3');
class EventEmitterTest {
v: EventEmitter;
-
+
constructor() {
this.v = new EventEmitter();
this.v = new EventEmitter.EventEmitter();
this.v = new EventEmitter.EventEmitter2();
this.v = new EventEmitter.EventEmitter3();
}
-
+
listeners() {
var v1: Function[] = this.v.listeners('click');
}
-
+
emit() {
var v1: boolean = this.v.emit('click');
var v2: boolean = this.v.emit('click', 1);
@@ -24,41 +24,41 @@ class EventEmitterTest {
var v4: boolean = this.v.emit('click', 1, '1', true);
var v5: boolean = this.v.emit('click', 1, '1', true, new Date());
}
-
+
on() {
var fn = () => console.log(1);
var v1: EventEmitter = this.v.on('click', fn);
var v2: EventEmitter = this.v.on('click', fn, this);
}
-
+
once() {
var fn = () => console.log(1);
var v1: EventEmitter = this.v.once('click', fn);
var v2: EventEmitter = this.v.once('click', fn, this);
}
-
+
removeListener() {
var fn = () => console.log(1);
var v1: EventEmitter = this.v.removeListener('click', fn);
var v2: EventEmitter = this.v.removeListener('click', fn, true);
}
-
+
removeAllListeners() {
var v1: EventEmitter = this.v.removeAllListeners('click');
}
-
+
off() {
var fn = () => console.log(1);
var v1: EventEmitter = this.v.off('click', fn);
var v2: EventEmitter = this.v.off('click', fn, true);
}
-
+
addListener() {
var fn = () => console.log(1);
var v1: EventEmitter = this.v.addListener('click', fn);
var v2: EventEmitter = this.v.addListener('click', fn, this);
}
-
+
setMaxListeners() {
var v1: EventEmitter = this.v.setMaxListeners();
}
diff --git a/fluxxor/fluxxor-test.ts b/fluxxor/fluxxor-tests.ts
similarity index 96%
rename from fluxxor/fluxxor-test.ts
rename to fluxxor/fluxxor-tests.ts
index 87e978248ec6e8..7d8c5c948d4e27 100644
--- a/fluxxor/fluxxor-test.ts
+++ b/fluxxor/fluxxor-tests.ts
@@ -5,27 +5,27 @@ import Fluxxor = require('fluxxor');
class DispatcherTest {
v: Fluxxor.Dispatcher;
-
+
constructor() {
var stores: Fluxxor.Store[];
this.v = new Fluxxor.Dispatcher(stores);
}
-
+
addStore() {
var store: Fluxxor.Store;
var v1: void = this.v.addStore('mystore', store);
}
-
+
dispatch() {
var fn = () => console.log(1);
var v1: void = this.v.dispatch(fn);
}
-
+
doDispatchLoop() {
var fn = () => console.log(1);
var v1: void = this.v.doDispatchLoop(fn);
}
-
+
waitForStores() {
var store: Fluxxor.Store;
var fn = () => console.log(1);
@@ -35,44 +35,44 @@ class DispatcherTest {
class FluxTest {
v: Fluxxor.Flux;
-
+
constructor() {
var stores: any;
var actions: any;
this.v = new Fluxxor.Flux(stores, actions);
}
-
+
props() {
var stores: any = this.v.stores;
var actions: any = this.v.actions;
}
-
+
addActions() {
var actions: any;
var v1: void = this.v.addActions(actions);
}
-
+
addAction() {
var fn = () => console.log(1);
-
+
// first form
var v1: void = this.v.addAction('action1', fn);
var v2: void = this.v.addAction('action1', 'action2', fn);
-
+
// second form
var v3: void = this.v.addAction(['action1'], fn);
var v4: void = this.v.addAction(['action1','action2'], fn);
}
-
+
store() {
var store1: any = this.v.store('mystore');
}
-
+
addStore() {
var store: Fluxxor.Store;
var v1: void = this.v.addStore('mystore', store);
}
-
+
addStores() {
var stores: any;
var v1: void = this.v.addStores(stores);
@@ -81,24 +81,24 @@ class FluxTest {
class StoreTest {
v: Fluxxor.Store;
-
+
bindActions() {
var fn = () => console.log(1);
-
+
// first form
var v1: void = this.v.bindActions('action1', fn);
var v2: void = this.v.bindActions(
'action1', fn,
'action2', fn
);
-
+
// second form
var v3: void = this.v.bindActions([
'action1', fn,
'action2', fn,
]);
}
-
+
waitFor() {
var fn = () => console.log(1);
var v1: void = this.v.waitFor(['mystore1','mystore2'], fn);
@@ -107,7 +107,7 @@ class StoreTest {
class ContextTest {
v: Fluxxor.Context;
-
+
props() {
var v1: Fluxxor.Flux = this.v.flux;
}
@@ -115,11 +115,11 @@ class ContextTest {
class FluxMixinTest {
v: Fluxxor.FluxMixin;
-
+
constructor() {
this.v = Fluxxor.FluxMixin(React);
}
-
+
getFlux() {
var v1: Fluxxor.Flux = this.v.getFlux();
}
@@ -127,11 +127,11 @@ class FluxMixinTest {
class FluxChildMixinTest {
v: Fluxxor.FluxChildMixin;
-
+
constructor() {
this.v = Fluxxor.FluxChildMixin(React);
}
-
+
getFlux() {
var v1: Fluxxor.Flux = this.v.getFlux();
}
@@ -139,13 +139,13 @@ class FluxChildMixinTest {
class StoreWatchMixinTest {
v: Fluxxor.StoreWatchMixin;
-
+
constructor() {
this.v = Fluxxor.StoreWatchMixin('store1');
this.v = Fluxxor.StoreWatchMixin('store1','store2');
this.v = Fluxxor.StoreWatchMixin('store1','store2','store3');
}
-
+
getStateFromFlux() {
var v1: StoreState = this.v.getStateFromFlux();
}
diff --git a/forge-di/forge-di-test.ts b/forge-di/forge-di-tests.ts
similarity index 100%
rename from forge-di/forge-di-test.ts
rename to forge-di/forge-di-tests.ts
diff --git a/kafka-node/kafka-node-test.ts b/kafka-node/kafka-node-tests.ts
similarity index 100%
rename from kafka-node/kafka-node-test.ts
rename to kafka-node/kafka-node-tests.ts
diff --git a/knockout-secure-binding/knockout-secure-binding-test.ts b/knockout-secure-binding/knockout-secure-binding-tests.ts
similarity index 100%
rename from knockout-secure-binding/knockout-secure-binding-test.ts
rename to knockout-secure-binding/knockout-secure-binding-tests.ts
diff --git a/later/later-test.ts b/later/later-tests.ts
similarity index 95%
rename from later/later-test.ts
rename to later/later-tests.ts
index 2d336d1b3f2eba..4f0d429708a6ea 100644
--- a/later/later-test.ts
+++ b/later/later-tests.ts
@@ -8,7 +8,7 @@ module LaterTest_DefineSchedule {
var cronSched = later.parse.cron('0 0/5 14,18 * * ?');
var recurSched = later.parse.recur().last().dayOfMonth();
var manualSched = { schedules: [ { M: [ 3 ], D: [ 21 ] } ] };
-
+
// this schedule will fire on the closest weekday to the 15th
// every month at 2:00 am except in March
var complexSched = later.parse.recur()
@@ -414,7 +414,7 @@ module LaterTest_TimePeriods {
export function custom() {
var customLater = later;
-
+
customLater.partOfDay = {
name: 'part of day',
@@ -422,10 +422,10 @@ module LaterTest_TimePeriods {
range: later.hour.range * 6,
val: function(d: Date): number {
- return later.hour.val(d) < 12
- ? 0
- : later.hour.val(d) < 18
- ? 1
+ return later.hour.val(d) < 12
+ ? 0
+ : later.hour.val(d) < 18
+ ? 1
: 2;
},
@@ -433,15 +433,15 @@ module LaterTest_TimePeriods {
return customLater.partOfDay.val(d) === val;
},
- extent: function(date?: Date) {
- return [0, 2];
+ extent: function(date?: Date) {
+ return [0, 2];
},
start: function(date: Date) {
- var hour = customLater.partOfDay.val(date) === 0
- ? 0
- : customLater.partOfDay.val(date) === 1
- ? 12
+ var hour = customLater.partOfDay.val(date) === 0
+ ? 0
+ : customLater.partOfDay.val(date) === 1
+ ? 12
: 18;
return later.date.next(
@@ -453,10 +453,10 @@ module LaterTest_TimePeriods {
},
end: function(date: Date) {
- var hour = customLater.partOfDay.val(date) === 0
- ? 11
- : customLater.partOfDay.val(date) === 1
- ? 5
+ var hour = customLater.partOfDay.val(date) === 0
+ ? 11
+ : customLater.partOfDay.val(date) === 1
+ ? 5
: 23;
return later.date.prev(
@@ -468,10 +468,10 @@ module LaterTest_TimePeriods {
},
next: function(date: Date, val: any) {
- var hour = val === 0
- ? 0
- : val === 1
- ? 12
+ var hour = val === 0
+ ? 0
+ : val === 1
+ ? 12
: 18;
return later.date.next(
@@ -484,17 +484,17 @@ module LaterTest_TimePeriods {
},
prev: function(date: Date, val: any) {
- var hour = val === 0
- ? 11
- : val === 1
- ? 5
+ var hour = val === 0
+ ? 11
+ : val === 1
+ ? 5
: 23;
return later.date.prev(
later.year.val(date),
later.month.val(date),
// decrement the day if we already passed the desired time period
- later.day.val(date) + (hour > later.hour.val(date) ? -1 : 0),
+ later.day.val(date) + (hour > later.hour.val(date) ? -1 : 0),
hour
);
}
@@ -503,7 +503,7 @@ module LaterTest_TimePeriods {
}
module LaterTest_GenerateRecurences {
-
+
export function on_method() {
// fires on the 2nd minute every hour
later.parse.recur().on(2).minute();
diff --git a/md5/md5-test.ts b/md5/md5-tests.ts
similarity index 100%
rename from md5/md5-test.ts
rename to md5/md5-tests.ts
diff --git a/mockery/mockery-test.ts b/mockery/mockery-tests.ts
similarity index 100%
rename from mockery/mockery-test.ts
rename to mockery/mockery-tests.ts
diff --git a/nedb/nedb-test.ts b/nedb/nedb-tests.ts
similarity index 100%
rename from nedb/nedb-test.ts
rename to nedb/nedb-tests.ts
diff --git a/node-getopt/node-getopt-test.ts b/node-getopt/node-getopt-tests.ts
similarity index 100%
rename from node-getopt/node-getopt-test.ts
rename to node-getopt/node-getopt-tests.ts
diff --git a/observe-js/observe-js-test.ts b/observe-js/observe-js-tests.ts
similarity index 98%
rename from observe-js/observe-js-test.ts
rename to observe-js/observe-js-tests.ts
index 37ad0216c59433..3dc4c73df5e6e9 100644
--- a/observe-js/observe-js-test.ts
+++ b/observe-js/observe-js-tests.ts
@@ -1,7 +1,7 @@
///
module observejs {
-
+
function Test_PathObserver() {
var obj = { foo: { bar: 'baz' } };
var defaultValue = 42;
@@ -10,8 +10,8 @@ module observejs {
// respond to obj.foo.bar having changed value.
});
}
-
-
+
+
function Test_ArrayObserver() {
var arr = [0, 1, 2, 4];
var observer = new ArrayObserver(arr);
@@ -24,7 +24,7 @@ module observejs {
});
});
}
-
+
function Test_ObejctObserver() {
var myObj = { id: 1, foo: 'bar' };
var observer = new ObjectObserver(myObj);
@@ -45,15 +45,15 @@ module observejs {
});
});
}
-
+
function Test_CompounObserver() {
var obj = {
a: 1,
b: 2,
};
-
+
var otherObj = { c: 3 };
-
+
var observer = new CompoundObserver();
observer.addPath(obj, 'a');
observer.addObserver(new PathObserver(obj, 'b'));
@@ -66,25 +66,25 @@ module observejs {
}
});
}
-
+
function Test_ObserverTransform_1() {
var obj = { value: 10 };
var observer = new PathObserver(obj, 'value');
function getValue(value:any) { return value * 2 };
function setValue(value:any) { return value / 2 };
-
+
var transform = new ObserverTransform(observer, getValue, setValue);
-
+
// returns 20.
transform.open(function(newValue, oldValue) {
console.log('new: ' + newValue + ', old: ' + oldValue);
});
-
+
obj.value = 20;
transform.deliver(); // 'new: 40, old: 20'
transform.setValue(4); // obj.value === 2;
}
-
+
function Test_ObserverTransform_2() {
var obj = { a: 1, b: 2, c: 3 };
var observer = new CompoundObserver();
@@ -97,12 +97,12 @@ module observejs {
value += values[i]
return value;
});
-
+
// returns 6.
transform.open(function(newValue, oldValue) {
console.log('new: ' + newValue + ', old: ' + oldValue);
});
-
+
obj.a = 2;
obj.c = 10;
transform.deliver(); // 'new: 14, old: 6'
diff --git a/pgwmodal/pgwmodal-test.ts b/pgwmodal/pgwmodal-tests.ts
similarity index 100%
rename from pgwmodal/pgwmodal-test.ts
rename to pgwmodal/pgwmodal-tests.ts
diff --git a/progress/progress-test.ts b/progress/progress-tests.ts
similarity index 100%
rename from progress/progress-test.ts
rename to progress/progress-tests.ts
diff --git a/proxyquire/proxyquire-test.ts b/proxyquire/proxyquire-tests.ts
similarity index 100%
rename from proxyquire/proxyquire-test.ts
rename to proxyquire/proxyquire-tests.ts
diff --git a/react-bootstrap/react-bootstrap-test.tsx b/react-bootstrap/react-bootstrap-tests.tsx
similarity index 98%
rename from react-bootstrap/react-bootstrap-test.tsx
rename to react-bootstrap/react-bootstrap-tests.tsx
index cdb1c7baec61db..8b0dd0fc0ac43c 100644
--- a/react-bootstrap/react-bootstrap-test.tsx
+++ b/react-bootstrap/react-bootstrap-tests.tsx
@@ -1,9 +1,9 @@
-// React-Bootstrap Test
+// React-Bootstrap Test
// ================================================================================
///
///
-// Imports
+// Imports
// --------------------------------------------------------------------------------
import * as React from 'react';
import { Component, CSSProperties } from 'react';
@@ -11,7 +11,7 @@ import { Button, ButtonToolbar, Modal, Well, ButtonGroup, DropdownButton, MenuIt
export class ReactBootstrapTest extends Component {
- callback() {
+ callback() {
alert('Callback: ' + JSON.stringify(arguments));
}
@@ -30,7 +30,7 @@ export class ReactBootstrapTest extends Component {
const innerCheckbox = ;
return (
-