diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-16 09:04:35 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:18 +0200 |
commit | 89d241a79c262b9775c233b73cff080043ebb5e6 (patch) | |
tree | cb3b6cb431d25d891ef4e02f66c61d252d17048f /server/tests/api/notifications/admin-notifications.ts | |
parent | d23dd9fbfc4d26026352c10f81d2795ceaf2908a (diff) | |
download | PeerTube-89d241a79c262b9775c233b73cff080043ebb5e6.tar.gz PeerTube-89d241a79c262b9775c233b73cff080043ebb5e6.tar.zst PeerTube-89d241a79c262b9775c233b73cff080043ebb5e6.zip |
Shorter server command names
Diffstat (limited to 'server/tests/api/notifications/admin-notifications.ts')
-rw-r--r-- | server/tests/api/notifications/admin-notifications.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/server/tests/api/notifications/admin-notifications.ts b/server/tests/api/notifications/admin-notifications.ts index 03fbe0b70..5a5bdb0c8 100644 --- a/server/tests/api/notifications/admin-notifications.ts +++ b/server/tests/api/notifications/admin-notifications.ts | |||
@@ -58,8 +58,8 @@ describe('Test admin notifications', function () { | |||
58 | token: server.accessToken | 58 | token: server.accessToken |
59 | } | 59 | } |
60 | 60 | ||
61 | await server.pluginsCommand.install({ npmName: 'peertube-plugin-hello-world' }) | 61 | await server.plugins.install({ npmName: 'peertube-plugin-hello-world' }) |
62 | await server.pluginsCommand.install({ npmName: 'peertube-theme-background-red' }) | 62 | await server.plugins.install({ npmName: 'peertube-theme-background-red' }) |
63 | }) | 63 | }) |
64 | 64 | ||
65 | describe('Latest PeerTube version notification', function () { | 65 | describe('Latest PeerTube version notification', function () { |
@@ -118,8 +118,8 @@ describe('Test admin notifications', function () { | |||
118 | it('Should send a notification to admins on new plugin version', async function () { | 118 | it('Should send a notification to admins on new plugin version', async function () { |
119 | this.timeout(30000) | 119 | this.timeout(30000) |
120 | 120 | ||
121 | await server.sqlCommand.setPluginVersion('hello-world', '0.0.1') | 121 | await server.sql.setPluginVersion('hello-world', '0.0.1') |
122 | await server.sqlCommand.setPluginLatestVersion('hello-world', '0.0.1') | 122 | await server.sql.setPluginLatestVersion('hello-world', '0.0.1') |
123 | await wait(6000) | 123 | await wait(6000) |
124 | 124 | ||
125 | await checkNewPluginVersion(baseParams, PluginType.PLUGIN, 'hello-world', 'presence') | 125 | await checkNewPluginVersion(baseParams, PluginType.PLUGIN, 'hello-world', 'presence') |
@@ -140,8 +140,8 @@ describe('Test admin notifications', function () { | |||
140 | it('Should send a new notification after a new plugin release', async function () { | 140 | it('Should send a new notification after a new plugin release', async function () { |
141 | this.timeout(30000) | 141 | this.timeout(30000) |
142 | 142 | ||
143 | await server.sqlCommand.setPluginVersion('hello-world', '0.0.1') | 143 | await server.sql.setPluginVersion('hello-world', '0.0.1') |
144 | await server.sqlCommand.setPluginLatestVersion('hello-world', '0.0.1') | 144 | await server.sql.setPluginLatestVersion('hello-world', '0.0.1') |
145 | await wait(6000) | 145 | await wait(6000) |
146 | 146 | ||
147 | expect(adminNotifications.filter(n => n.type === UserNotificationType.NEW_PEERTUBE_VERSION)).to.have.lengthOf(2) | 147 | expect(adminNotifications.filter(n => n.type === UserNotificationType.NEW_PEERTUBE_VERSION)).to.have.lengthOf(2) |