Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
nvlang committed Jun 28, 2024
1 parent 1239dc1 commit 07738a8
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/vitest.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
name: Unit Tests (Vitest)
on:
# push:
# branches: [main]
push:
branches: [main]
pull_request:
branches: [main]

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ import { sveltex } from '@nvl/sveltex';

In alphabetical order:

- [ ] VSCode extension for proper syntax highlighting of `.sveltex` files.
- [ ] Yeoman generator for scaffolding new Sveltex projects.
- VSCode extension for proper LSP language support via request forwarding.
Currently, only basic syntax highlighting is provided.

## Contributing

Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@nvl/sveltex",
"version": "0.0.1",
"description": "MDX-like Svelte preprocessor with extensive TeX support.",
"version": "0.1.0",
"description": "Svelte + Markdown + LaTeX",
"type": "module",
"author": {
"name": "N. V. Lang",
Expand Down Expand Up @@ -31,6 +31,9 @@
"bugs": {
"url": "https://github.com/nvlang/sveltex/issues"
},
"publishConfig": {
"provenance": true
},
"homepage": "https://sveltex.dev",
"files": [
"dist",
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/utils/cdn.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('utils/cdn', () => {
it.each([
[
'https://httpstat.us/503',
1000,
2000,
undefined,
'HTTP error 503 (Service Unavailable): https://httpstat.us/503',
],
Expand All @@ -42,7 +42,7 @@ describe('utils/cdn', () => {
],
])(
'fetchWithTimeout(%o, %o) === %o',
{ timeout: 1500, retry: 1 },
{ timeout: 2500, retry: 2 },
async (url, timeout, expected, logMessage) => {
const { log } = await spy([
'writeFileEnsureDir',
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/utils/misc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ describe.concurrent('utils/misc', () => {
describe('ensureDoesNotStartWith', () => {
it('should remove leading slash', () => {
expect(ensureDoesNotStartWith('/abc', '/')).toEqual('abc');
expect(ensureDoesNotStartWith('//abc', '/')).toEqual('/abc');
expect(ensureDoesNotStartWith('//abc', '/')).toEqual('abc');
});
it('should return strings without leading slashes as-is', () => {
expect(ensureDoesNotStartWith('abc', '/')).toEqual('abc');
Expand Down

0 comments on commit 07738a8

Please sign in to comment.