Skip to content

Commit 2f19404

Browse files
DdeHoogmvegter
authored andcommitted
fix: added various syntax fixes
1 parent 8aef110 commit 2f19404

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/public/views/Subsystems/Subsystems.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class SubsystemModel extends Observable {
6363
/**
6464
* Fetches all Subsystems.
6565
*
66-
* @returns {undefined}
66+
* @returns {Promise}
6767
*/
6868
async fetchAllSubsystems() {
6969
if (this.getSubsystems().isSuccess()) {
@@ -90,7 +90,7 @@ class SubsystemModel extends Observable {
9090
* Fetches the Subsystems data.
9191
*
9292
* @param {*} subsystemId Id of the subsystem.
93-
* @returns {undefined}
93+
* @returns {Promise}
9494
*/
9595
async fetchOneSubsystem(subsystemId) {
9696
if (this.getSubsystem().isSuccess()) {
@@ -117,7 +117,7 @@ class SubsystemModel extends Observable {
117117
* Fetches the logs with provided subsystem.
118118
*
119119
* @param {*} subsystemId Id of the subsystem.
120-
* @returns {undefined}
120+
* @returns {Promise}
121121
*/
122122
async fetchLogsOfSubsystem(subsystemId) {
123123
if (this.getLogsOfSubsystem().isSuccess()) {

test/public/subsystems/detail.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ module.exports = () => {
6767
});
6868

6969
it('subsystem detail loads correctly', async () => {
70-
await page.goto(`${url}/?page=subsystems&id=1`);
70+
await page.goto(`${url}/?page=subsystem&id=1`);
7171
await page.waitFor(100);
7272

7373
const postExists = await page.$('h2');

0 commit comments

Comments
 (0)