Skip to content

Commit 3aec927

Browse files
Manu ChaudharyManu Chaudhary
authored andcommitted
test case typo fix
1 parent a3b799a commit 3aec927

File tree

7 files changed

+17
-21
lines changed

7 files changed

+17
-21
lines changed

sample.env

Lines changed: 0 additions & 4 deletions
This file was deleted.

samples/sample-app/sample.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
VUE_APP_PUBLIC_KEY = your_own_public_key
2-
VUE_APP_URL_ENDPOINT = your_own_url_endpoint
1+
VUE_APP_PUBLIC_KEY = your_public_key
2+
VUE_APP_URL_ENDPOINT = your_url_endpoint
33
VUE_APP_AUTHENTICATION_ENDPOINT = http://localhost:3001/auth
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
PRIVATE_KEY = your_own_private_key
1+
PRIVATE_KEY = your_private_key

tests/__snapshots__/storyshots.test.js.snap

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ exports[`Storyshots IKImage Image With LQIP With Src With Transformation 1`] = `
4949
/>
5050
`;
5151

52-
exports[`Storyshots IKImage Image With Leading Slashes In Url Endpoint 1`] = `
52+
exports[`Storyshots IKImage Image With Leading Slashes In Path 1`] = `
5353
<img
5454
class="ik-image"
5555
src="https://ik.imagekit.io/your_imagekit_id/default-image.jpg?ik-sdk-version=vuejs-1.0.3"
@@ -88,7 +88,7 @@ exports[`Storyshots IKImage Image With Src Query Parameters 1`] = `
8888
/>
8989
`;
9090

91-
exports[`Storyshots IKImage Image With Trailing Slashes In Path 1`] = `
91+
exports[`Storyshots IKImage Image With Trailing Slashes In Url Endpoint 1`] = `
9292
<img
9393
class="ik-image"
9494
src="https://ik.imagekit.io/your_imagekit_id/default-image.jpg?ik-sdk-version=vuejs-1.0.3"
@@ -101,25 +101,25 @@ exports[`Storyshots IKUpload Image Upload 1`] = `
101101
/>
102102
`;
103103

104-
exports[`Storyshots IKUpload Image Uploadno Authentication 1`] = `
104+
exports[`Storyshots IKUpload Image Upload No Authentication 1`] = `
105105
<input
106106
type="file"
107107
/>
108108
`;
109109

110-
exports[`Storyshots IKUpload Image Uploadwith All Props 1`] = `
110+
exports[`Storyshots IKUpload Image Upload With All Props 1`] = `
111111
<input
112112
type="file"
113113
/>
114114
`;
115115

116-
exports[`Storyshots IKUpload Image Uploadwith No Custom Coordinates 1`] = `
116+
exports[`Storyshots IKUpload Image Upload With No Custom Coordinates 1`] = `
117117
<input
118118
type="file"
119119
/>
120120
`;
121121

122-
exports[`Storyshots IKUpload Image Uploadwith No Tags 1`] = `
122+
exports[`Storyshots IKUpload Image Upload With No Tags 1`] = `
123123
<input
124124
type="file"
125125
/>
@@ -160,7 +160,7 @@ exports[`Storyshots Transformations Image With Transformation Position As Query
160160
/>
161161
`;
162162

163-
exports[`Storyshots Transformations Image Withon Existing Transformation 1`] = `
163+
exports[`Storyshots Transformations Image Without Existing Transformation 1`] = `
164164
<img
165165
class="ik-image"
166166
src="https://ik.imagekit.io/your_imagekit_id/default-image.jpg?ik-sdk-version=vuejs-1.0.3&tr=foo-bar"

tests/stories/1-ImageKitImage.stories.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ export const imageWithSrcQueryParameters = () => ({
3434
template: `<IKImage publicKey="${publicKey}" urlEndpoint=${urlEndpoint} src="${src}?foo=bar" :queryParameters="{version:5, name: 'check'}"></IKImage>`,
3535
});
3636

37-
export const imageWithLeadingSlashesInUrlEndpoint = () => ({
37+
export const imageWithTrailingSlashesInUrlEndpoint = () => ({
3838
components: { IKImage },
3939
template: `<IKImage publicKey="${publicKey}" urlEndpoint="https://ik.imagekit.io/your_imagekit_id////" path=${path}></IKImage>`,
4040
});
4141

42-
export const imageWithTrailingSlashesInPath = () => ({
42+
export const imageWithLeadingSlashesInPath = () => ({
4343
components: { IKImage },
4444
template: `<IKImage publicKey="${publicKey}" urlEndpoint=${urlEndpoint} path=${`////${path}`}></IKImage>`,
4545
});

tests/stories/2-Transformations.stories.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const imageWithChainedTransformation = () => ({
3232
template: `<IKImage publicKey="${publicKey}" urlEndpoint=${urlEndpoint} src=${src} :transformation="[{height:300,width:400},{rotation:90}]"></IKImage>`,
3333
});
3434

35-
export const imageWithonExistingTransformation = () => ({
35+
export const imageWithoutExistingTransformation = () => ({
3636
components: { IKImage },
3737
template: `<IKImage publicKey="${publicKey}" urlEndpoint=${urlEndpoint} src=${src} :transformation="[{foo:'bar'}]"></IKImage>`,
3838
});

tests/stories/3-UploadImage.stories.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,22 @@ export const ImageUpload = () => ({
1919
template: `<IKContext publicKey="${publicKey}" urlEndpoint=${urlEndpoint} authenticationEndpoint=${authenticationEndpoint}><IKUpload fileName="'new'" :onError="onError" :onSuccess = "onSuccess" /></IKContext>`,
2020
});
2121

22-
export const ImageUploadwithAllProps = () => ({
22+
export const ImageUploadWithAllProps = () => ({
2323
components: { IKUpload,IKContext },
2424
template: `<IKContext publicKey="${publicKey}" urlEndpoint=${urlEndpoint} authenticationEndpoint=${authenticationEndpoint}><IKUpload fileName="'new'" v-bind:useUniqueFileName="true" v-bind:tags="['tag1', 'tag2', 'tag3']" v-bind:folder="'/'" v-bind:isPrivateFile="true" v-bind:customCoordinates="'0,0,0,0'" v-bind:responseFields="['tags', 'isPrivateFile', 'customCoordinates']" /></IKContext>`,
2525
});
2626

27-
export const ImageUploadwithNoTags = () => ({
27+
export const ImageUploadWithNoTags = () => ({
2828
components: { IKUpload,IKContext },
2929
template: `<IKContext publicKey="${publicKey}" urlEndpoint=${urlEndpoint} authenticationEndpoint=${authenticationEndpoint}><IKUpload fileName="'new'" v-bind:useUniqueFileName="true" v-bind:folder="'/'" v-bind:isPrivateFile="true" v-bind:customCoordinates="'0,0,0,0'" v-bind:responseFields="['isPrivateFile', 'customCoordinates']" /></IKContext>`,
3030
});
3131

32-
export const ImageUploadwithNoCustomCoordinates = () => ({
32+
export const ImageUploadWithNoCustomCoordinates = () => ({
3333
components: { IKUpload,IKContext },
3434
template: `<IKContext publicKey="${publicKey}" urlEndpoint=${urlEndpoint} authenticationEndpoint=${authenticationEndpoint}><IKUpload fileName="'new'" v-bind:useUniqueFileName="false" v-bind:tags="['tag1', 'tag2', 'tag3']" v-bind:folder="'/'" v-bind:isPrivateFile="false" v-bind:responseFields="['tags', 'isPrivateFile']" /></IKContext>`,
3535
});
3636

37-
export const ImageUploadnoAuthentication = () => ({
37+
export const ImageUploadNoAuthentication = () => ({
3838
components: { IKUpload,IKContext },
3939
template: `<IKContext publicKey="${publicKey}" urlEndpoint=${urlEndpoint} authenticationEndpoint=""><IKUpload fileName="new"/></IKContext>`,
4040
});

0 commit comments

Comments
 (0)