1- /// <reference path="bower_components/DefinitelyTyped/jasmine/jasmine .d.ts" />
1+ /// <reference path="typings/tsd .d.ts" />
22/// <reference path="exceptionless.ts" />
33
4+ //import { Configuration, ExceptionlessClient } from 'Exceptionless';
45module Exceptionless {
5- describe ( 'ExceptionlessClient' , function ( ) {
6- it ( 'disable the client with null api key' , function ( ) {
6+ describe ( 'ExceptionlessClient' , ( ) => {
7+ it ( 'disable the client with null api key' , ( ) => {
78 var client = new ExceptionlessClient ( null ) ;
89 expect ( client . config ) . not . toBe ( null ) ;
910 expect ( client . config . apiKey ) . toBe ( null ) ;
1011 expect ( client . config . enabled ) . toBe ( false ) ;
1112 } ) ;
1213
13- it ( 'should set the api key and enabled to true' , function ( ) {
14+ it ( 'should set the api key and enabled to true' , ( ) => {
1415 var client = new ExceptionlessClient ( 'LhhP1C9gijpSKCslHHCvwdSIz298twx271n1l6xw' ) ;
1516 expect ( client . config ) . not . toBe ( null ) ;
1617 expect ( client . config . apiKey ) . toBe ( 'LhhP1C9gijpSKCslHHCvwdSIz298twx271n1l6xw' ) ;
1718 expect ( client . config . enabled ) . toBe ( true ) ;
1819 } ) ;
1920
20- it ( 'apply client configuration' , function ( ) {
21+ it ( 'apply client configuration' , ( ) => {
2122 var client = new ExceptionlessClient ( null ) ;
2223 expect ( client . config ) . not . toBe ( null ) ;
2324 expect ( client . config . apiKey ) . toBe ( null ) ;
@@ -29,45 +30,45 @@ module Exceptionless {
2930 } ) ;
3031 } ) ;
3132
32- describe ( 'EventQueue' , function ( ) {
33- it ( 'should enqueue event' , function ( ) {
33+ describe ( 'EventQueue' , ( ) => {
34+ it ( 'should enqueue event' , ( ) => {
3435 var config = new Configuration ( 'LhhP1C9gijpSKCslHHCvwdSIz298twx271n1l6xw' ) ;
3536 } ) ;
3637
37- it ( 'should process queue' , function ( ) {
38+ it ( 'should process queue' , ( ) => {
3839 var config = new Configuration ( 'LhhP1C9gijpSKCslHHCvwdSIz298twx271n1l6xw' ) ;
3940 } ) ;
4041
41- it ( 'should suspend processing' , function ( ) {
42+ it ( 'should suspend processing' , ( ) => {
4243 var config = new Configuration ( 'LhhP1C9gijpSKCslHHCvwdSIz298twx271n1l6xw' ) ;
4344 } ) ;
4445 } ) ;
4546
46- describe ( 'SubmissionClient' , function ( ) {
47- it ( 'should submit events' , function ( ) {
47+ describe ( 'SubmissionClient' , ( ) => {
48+ it ( 'should submit events' , ( ) => {
4849 var config = new Configuration ( 'LhhP1C9gijpSKCslHHCvwdSIz298twx271n1l6xw' ) ;
4950 } ) ;
5051
51- it ( 'should submit user description' , function ( ) {
52+ it ( 'should submit user description' , ( ) => {
5253 var config = new Configuration ( 'LhhP1C9gijpSKCslHHCvwdSIz298twx271n1l6xw' ) ;
5354 } ) ;
5455
55- it ( 'should get project settings' , function ( ) {
56+ it ( 'should get project settings' , ( ) => {
5657 var config = new Configuration ( 'LhhP1C9gijpSKCslHHCvwdSIz298twx271n1l6xw' ) ;
5758 } ) ;
5859 } ) ;
5960
60- describe ( 'Storage' , function ( ) {
61- it ( 'should save events' , function ( ) {
62- var config = new Configuration ( 'LhhP1C9gijpSKCslHHCvwdSIz298twx271n1l6xw' ) ;
63- } ) ;
61+ describe ( 'Storage' , ( ) => {
62+ it ( 'should save events' , ( ) => {
63+ var config = new Configuration ( 'LhhP1C9gijpSKCslHHCvwdSIz298twx271n1l6xw' ) ;
64+ } ) ;
6465
65- it ( 'should get saved events' , function ( ) {
66- var config = new Configuration ( 'LhhP1C9gijpSKCslHHCvwdSIz298twx271n1l6xw' ) ;
67- } ) ;
66+ it ( 'should get saved events' , ( ) => {
67+ var config = new Configuration ( 'LhhP1C9gijpSKCslHHCvwdSIz298twx271n1l6xw' ) ;
68+ } ) ;
6869
69- it ( 'should clear all events' , function ( ) {
70- var config = new Configuration ( 'LhhP1C9gijpSKCslHHCvwdSIz298twx271n1l6xw' ) ;
70+ it ( 'should clear all events' , ( ) => {
71+ var config = new Configuration ( 'LhhP1C9gijpSKCslHHCvwdSIz298twx271n1l6xw' ) ;
72+ } ) ;
7173 } ) ;
72- } ) ;
7374}
0 commit comments