From 72d97549f7a8e6ddd08b35ef3f3231867b4581f3 Mon Sep 17 00:00:00 2001 From: L2jLiga Date: Wed, 20 Jun 2018 23:09:14 +0700 Subject: [PATCH] Added: some tests --- types/http-rx/http-rx-tests.ts | 18 ++++++++++++++++++ types/http-rx/index.d.ts | 3 ++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/types/http-rx/http-rx-tests.ts b/types/http-rx/http-rx-tests.ts index 9a8a87be08..2cd581aae6 100644 --- a/types/http-rx/http-rx-tests.ts +++ b/types/http-rx/http-rx-tests.ts @@ -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(); diff --git a/types/http-rx/index.d.ts b/types/http-rx/index.d.ts index 4aca59f257..7cd130e30a 100644 --- a/types/http-rx/index.d.ts +++ b/types/http-rx/index.d.ts @@ -19,4 +19,5 @@ interface HttpRx { 'delete'(url: string, options: any): Observable; } -export = HttpRx; +declare const httpRx: HttpRx; +export = httpRx;