Exemplo n.º 1
0
 it('should fail to create a visualisation using a dashboardToken', async () => {
   const dashboard = await createDashboard({});
   const dashboardToken = await createDashboardToken(dashboard);
   await assertCreate({ bearerToken: dashboardToken, expectedStatus: 403 });
 });
Exemplo n.º 2
0
 it('should fail to delete a dashboard using a dashboardToken', async () => {
   const dashboard = await createDashboard({});
   const dashboardToken = await createDashboardToken(dashboard);
   await assertDelete({ bearerToken: dashboardToken, expectedStatus: 403 });
 });