Skip to content

Commit

Permalink
test ksCombineLatest
Browse files Browse the repository at this point in the history
  • Loading branch information
KEIII committed Feb 9, 2024
1 parent 8900e1f commit f26678a
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 20 deletions.
5 changes: 4 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
"image": "mcr.microsoft.com/devcontainers/javascript-node:20",
"customizations": {
"vscode": {
"extensions": ["esbenp.prettier-vscode"]
"extensions": [
"esbenp.prettier-vscode",
"Orta.vscode-jest"
]
}
}
}
7 changes: 7 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"arrowParens": "avoid",
"jsxSingleQuote": true,
"singleQuote": true,
"trailingComma": "all",
"endOfLine": "auto"
}
12 changes: 12 additions & 0 deletions jest.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"preset": "ts-jest",
"testEnvironment": "node",
"transform": {
"^.+\\.ts?$": [
"ts-jest",
{
"tsconfig": "tsconfig.json"
}
]
}
}
19 changes: 0 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,24 +47,5 @@
"rxjs": "^7.8.1",
"ts-jest": "^29.1.2",
"typescript": "^5.3.3"
},
"prettier": {
"arrowParens": "avoid",
"jsxSingleQuote": true,
"singleQuote": true,
"trailingComma": "all",
"endOfLine": "auto"
},
"jest": {
"preset": "ts-jest",
"testEnvironment": "node",
"transform": {
"^.+\\.ts?$": [
"ts-jest",
{
"tsconfig": "tsconfig.json"
}
]
}
}
}
7 changes: 7 additions & 0 deletions tests/ ksCombineLatest.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { ksCombineLatest, ksNever } from '../src';

describe('ksCombineLatest', () => {
it('should return ksNever for empty inputs', () => {
expect(ksCombineLatest([])).toBe(ksNever);
});
});

0 comments on commit f26678a

Please sign in to comment.