Skip to content

Commit f1242da

Browse files
authored
Merge pull request #32 from Lenni009/dev
Add tests
2 parents 8d181c3 + ddc52a1 commit f1242da

File tree

7 files changed

+4496
-368
lines changed

7 files changed

+4496
-368
lines changed

.github/workflows/test-build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,10 @@ jobs:
2020
- name: Checkout Repo
2121
uses: actions/checkout@v4
2222

23+
- name: Run Tests
24+
run: |
25+
npm ci
26+
npm run test-ci
27+
2328
- name: Test Build
2429
uses: Lenni009/test-build-vite-action@main

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ npm i simple-image-compressor
1515
### CDN
1616

1717
```html
18-
<script src="https://cdn.jsdelivr.net/npm/[email protected].0/dist/simple-image-compressor-min.js"></script>
18+
<script src="https://cdn.jsdelivr.net/npm/[email protected].2/dist/simple-image-compressor-min.js"></script>
1919
```
2020

2121
## Main function
@@ -59,7 +59,7 @@ const compressedImage = await compressFile(file);
5959
```html
6060
<html lang="en">
6161
<head>
62-
<script src="https://cdn.jsdelivr.net/npm/[email protected].0/dist/simple-image-compressor-min.js"></script>
62+
<script src="https://cdn.jsdelivr.net/npm/[email protected].1/dist/simple-image-compressor-min.js"></script>
6363
<script>
6464
window.onload = () => {
6565
const fileInput = document.getElementById('file-input');

0 commit comments

Comments
 (0)