-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[UXE-5459] feat: enhance edge node list view with fetch table block (#…
- Loading branch information
1 parent
3e1d5a5
commit a24b106
Showing
3 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/tests/services/edge-node-services/v4/make-edge-node-list-base-url.test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { makeEdgeNodeBaseUrl } from '@/services/edge-node-services/v4/make-edge-node-base-url' | ||
import { assert, describe, it } from 'vitest' | ||
|
||
const makeSut = () => { | ||
const sut = makeEdgeNodeBaseUrl | ||
|
||
return { | ||
sut | ||
} | ||
} | ||
|
||
describe('EdgeNodeServices', () => { | ||
it('should return the API base url to edge node service', () => { | ||
const { sut } = makeSut() | ||
const version = 'v4' | ||
const correctApiUrl = `${version}/edge_orchestrator/edge_nodes` | ||
|
||
const baseUrl = sut() | ||
|
||
assert.strictEqual(baseUrl, correctApiUrl) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters