Skip to content

Commit

Permalink
fix WOTLK_TO_RETAIL_DISPLAY_ID_API (#44)
Browse files Browse the repository at this point in the history
* fix WOTLK_TO_RETAIL_DISPLAY_ID_API

* coverage

* remove useless step
  • Loading branch information
Miorey authored Oct 18, 2023
1 parent d2854a4 commit 4a21111
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,3 @@ jobs:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm test
- run: npm run build --if-present
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wow-model-viewer",
"version": "1.3.2",
"version": "1.3.3",
"description": "Generate World of Warcraft 3D model with body parts customization and items.",
"engines": {
"node": ">=16.0.0 <19.0.0"
Expand Down
2 changes: 1 addition & 1 deletion setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ if(!window.CONTENT_PATH){
window.CONTENT_PATH =`http://localhost:3001/modelviewer/live/`
}
if(!window.WOTLK_TO_RETAIL_DISPLAY_ID_API){
window.WOTLK_TO_RETAIL_DISPLAY_ID_API=`https://wotlk.murlocvillage.com/`
window.WOTLK_TO_RETAIL_DISPLAY_ID_API=`https://wotlk.murlocvillage.com/api/items`
}


Expand Down
14 changes: 14 additions & 0 deletions tests/setup.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const {describe, it} = require(`@jest/globals`)

// Import the module to be tested
import {WH} from '../setup'

describe(`WH`, () => {
it(`check consts`, async () => {
expect(window.WOTLK_TO_RETAIL_DISPLAY_ID_API).toEqual(`https://wotlk.murlocvillage.com/api/items`)
expect(window.CONTENT_PATH).toEqual(`http://localhost:3001/modelviewer/live/`)
})
it(`check consts WH.debug`, async () => {
WH.debug(`Hello`, `world`)
})
})

0 comments on commit 4a21111

Please sign in to comment.