@@ -2,81 +2,81 @@ import { Capture } from "../dist";
2
2
3
3
const capture = new Capture ( "test" , "test" ) ;
4
4
5
- describe ( "Capture URL Builder" , function ( ) {
6
- describe ( "Image Requests" , function ( ) {
7
- it ( "should be an object" , function ( ) {
8
- expect ( capture ) . toHaveProperty ( "buildImageUrl" ) ;
9
- expect ( capture . buildImageUrl ) . toBeInstanceOf ( Function ) ;
10
- } ) ;
5
+ describe ( "Capture URL Builder" , ( ) => {
6
+ describe ( "Image Requests" , ( ) => {
7
+ it ( "should be an object" , ( ) => {
8
+ expect ( capture ) . toHaveProperty ( "buildImageUrl" ) ;
9
+ expect ( capture . buildImageUrl ) . toBeInstanceOf ( Function ) ;
10
+ } ) ;
11
11
12
- it ( "buildImageUrl should return valid url" , function ( ) {
13
- const url = capture . buildImageUrl ( "https://news.ycombinator.com/" ) ;
14
- console . log ( url ) ;
15
- expect ( url ) . toBe (
16
- "https://cdn.capture.techulus.in/test/f37d5fb3ee4540a05bf4ffeed6dffa28/image?url=https%3A%2F%2Fnews.ycombinator.com%2F"
17
- ) ;
18
- } ) ;
12
+ it ( "buildImageUrl should return valid url" , ( ) => {
13
+ const url = capture . buildImageUrl ( "https://news.ycombinator.com/" ) ;
14
+ console . log ( url ) ;
15
+ expect ( url ) . toBe (
16
+ "https://cdn.capture.techulus.in/test/f37d5fb3ee4540a05bf4ffeed6dffa28/image?url=https%3A%2F%2Fnews.ycombinator.com%2F" ,
17
+ ) ;
18
+ } ) ;
19
19
20
- it ( "buildImageUrl with options should return valid url" , function ( ) {
21
- const url = capture . buildImageUrl ( "https://capture.techulus.in/" , {
22
- full : true ,
23
- delay : 3 ,
24
- } ) ;
25
- expect ( url ) . toBe (
26
- "https://cdn.capture.techulus.in/test/2cb8b7ed9dbdb5c0db4a5dc4523a0780/image?full=true&delay=3&url=https%3A%2F%2Fcapture.techulus.in%2F"
27
- ) ;
28
- } ) ;
29
- } ) ;
20
+ it ( "buildImageUrl with options should return valid url" , ( ) => {
21
+ const url = capture . buildImageUrl ( "https://capture.techulus.in/" , {
22
+ full : true ,
23
+ delay : 3 ,
24
+ } ) ;
25
+ expect ( url ) . toBe (
26
+ "https://cdn.capture.techulus.in/test/2cb8b7ed9dbdb5c0db4a5dc4523a0780/image?full=true&delay=3&url=https%3A%2F%2Fcapture.techulus.in%2F" ,
27
+ ) ;
28
+ } ) ;
29
+ } ) ;
30
30
31
- describe ( "PDF Requests" , ( ) => {
32
- it ( "should be an object" , function ( ) {
33
- expect ( capture ) . toHaveProperty ( "buildPdfUrl" ) ;
34
- expect ( capture . buildPdfUrl ) . toBeInstanceOf ( Function ) ;
35
- } ) ;
31
+ describe ( "PDF Requests" , ( ) => {
32
+ it ( "should be an object" , ( ) => {
33
+ expect ( capture ) . toHaveProperty ( "buildPdfUrl" ) ;
34
+ expect ( capture . buildPdfUrl ) . toBeInstanceOf ( Function ) ;
35
+ } ) ;
36
36
37
- it ( "buildPdfUrl should return valid url" , function ( ) {
38
- const url = capture . buildPdfUrl ( "https://news.ycombinator.com/" ) ;
39
- expect ( url ) . toBe (
40
- "https://cdn.capture.techulus.in/test/f37d5fb3ee4540a05bf4ffeed6dffa28/pdf?url=https%3A%2F%2Fnews.ycombinator.com%2F"
41
- ) ;
42
- } ) ;
37
+ it ( "buildPdfUrl should return valid url" , ( ) => {
38
+ const url = capture . buildPdfUrl ( "https://news.ycombinator.com/" ) ;
39
+ expect ( url ) . toBe (
40
+ "https://cdn.capture.techulus.in/test/f37d5fb3ee4540a05bf4ffeed6dffa28/pdf?url=https%3A%2F%2Fnews.ycombinator.com%2F" ,
41
+ ) ;
42
+ } ) ;
43
43
44
- it ( "buildPdfUrl with options should return valid url" , function ( ) {
45
- const url = capture . buildPdfUrl ( "https://capture.techulus.in/" , {
46
- full : true ,
47
- delay : 3 ,
48
- } ) ;
49
- expect ( url ) . toBe (
50
- "https://cdn.capture.techulus.in/test/2cb8b7ed9dbdb5c0db4a5dc4523a0780/pdf?full=true&delay=3&url=https%3A%2F%2Fcapture.techulus.in%2F"
51
- ) ;
52
- } ) ;
53
- } ) ;
44
+ it ( "buildPdfUrl with options should return valid url" , ( ) => {
45
+ const url = capture . buildPdfUrl ( "https://capture.techulus.in/" , {
46
+ full : true ,
47
+ delay : 3 ,
48
+ } ) ;
49
+ expect ( url ) . toBe (
50
+ "https://cdn.capture.techulus.in/test/2cb8b7ed9dbdb5c0db4a5dc4523a0780/pdf?full=true&delay=3&url=https%3A%2F%2Fcapture.techulus.in%2F" ,
51
+ ) ;
52
+ } ) ;
53
+ } ) ;
54
54
55
- describe ( "Content Requests" , ( ) => {
56
- it ( "should be an object" , function ( ) {
57
- expect ( capture ) . toHaveProperty ( "buildContentUrl" ) ;
58
- expect ( capture . buildContentUrl ) . toBeInstanceOf ( Function ) ;
59
- } ) ;
55
+ describe ( "Content Requests" , ( ) => {
56
+ it ( "should be an object" , ( ) => {
57
+ expect ( capture ) . toHaveProperty ( "buildContentUrl" ) ;
58
+ expect ( capture . buildContentUrl ) . toBeInstanceOf ( Function ) ;
59
+ } ) ;
60
60
61
- it ( "buildContentUrl should return valid url" , function ( ) {
62
- const url = capture . buildContentUrl ( "https://news.ycombinator.com/" ) ;
63
- expect ( url ) . toBe (
64
- "https://cdn.capture.techulus.in/test/f37d5fb3ee4540a05bf4ffeed6dffa28/content?url=https%3A%2F%2Fnews.ycombinator.com%2F"
65
- ) ;
66
- } ) ;
67
- } ) ;
61
+ it ( "buildContentUrl should return valid url" , ( ) => {
62
+ const url = capture . buildContentUrl ( "https://news.ycombinator.com/" ) ;
63
+ expect ( url ) . toBe (
64
+ "https://cdn.capture.techulus.in/test/f37d5fb3ee4540a05bf4ffeed6dffa28/content?url=https%3A%2F%2Fnews.ycombinator.com%2F" ,
65
+ ) ;
66
+ } ) ;
67
+ } ) ;
68
68
69
- describe ( "Metadata Requests" , ( ) => {
70
- it ( "should be an object" , function ( ) {
71
- expect ( capture ) . toHaveProperty ( "buildMetadataUrl" ) ;
72
- expect ( capture . buildMetadataUrl ) . toBeInstanceOf ( Function ) ;
73
- } ) ;
69
+ describe ( "Metadata Requests" , ( ) => {
70
+ it ( "should be an object" , ( ) => {
71
+ expect ( capture ) . toHaveProperty ( "buildMetadataUrl" ) ;
72
+ expect ( capture . buildMetadataUrl ) . toBeInstanceOf ( Function ) ;
73
+ } ) ;
74
74
75
- it ( "buildMetadataUrl should return valid url" , function ( ) {
76
- const url = capture . buildMetadataUrl ( "https://news.ycombinator.com/" ) ;
77
- expect ( url ) . toBe (
78
- "https://cdn.capture.techulus.in/test/f37d5fb3ee4540a05bf4ffeed6dffa28/metadata?url=https%3A%2F%2Fnews.ycombinator.com%2F"
79
- ) ;
80
- } ) ;
81
- } ) ;
75
+ it ( "buildMetadataUrl should return valid url" , ( ) => {
76
+ const url = capture . buildMetadataUrl ( "https://news.ycombinator.com/" ) ;
77
+ expect ( url ) . toBe (
78
+ "https://cdn.capture.techulus.in/test/f37d5fb3ee4540a05bf4ffeed6dffa28/metadata?url=https%3A%2F%2Fnews.ycombinator.com%2F" ,
79
+ ) ;
80
+ } ) ;
81
+ } ) ;
82
82
} ) ;
0 commit comments