Added: some tests

This commit is contained in:
L2jLiga
2018-06-20 23:09:14 +07:00
parent 7877837dbc
commit 72d97549f7
2 changed files with 20 additions and 1 deletions
+18
View File
@@ -1,2 +1,20 @@
import { Observable } from 'rxjs';
import httpRx = require('http-rx');
httpRx.get('', {}).subscribe(() => {});
httpRx.get('', {}).pipe();
httpRx.head('', {}).subscribe(() => {});
httpRx.head('', {}).pipe();
httpRx.patch('', {}).subscribe(() => {});
httpRx.patch('', {}).pipe();
httpRx.post('', {}).subscribe(() => {});
httpRx.post('', {}).pipe();
httpRx.put('', {}).subscribe(() => {});
httpRx.put('', {}).pipe();
httpRx.delete('', {}).subscribe(() => {});
httpRx.delete('', {}).pipe();
+2 -1
View File
@@ -19,4 +19,5 @@ interface HttpRx {
'delete'(url: string, options: any): Observable<any>;
}
export = HttpRx;
declare const httpRx: HttpRx;
export = httpRx;