Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
elena-shostak committed Jan 3, 2025
1 parent 50cbe35 commit e82dcfe
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions src/dev/eslint/types.eslint.config.template.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,11 @@ module.exports = {
'@typescript-eslint/no-floating-promises': 'error',
},
},
{
files: ['*spaces_api_integration/deployment_agnostic/services/basic_auth_supertest.ts'],
rules: {
'@typescript-eslint/no-floating-promises': 'off',
},
},
],
};
Original file line number Diff line number Diff line change
Expand Up @@ -822,12 +822,12 @@ export function copyToSpaceTestSuiteFactory(context: DeploymentAgnosticFtrProvid
await supertest.destroy();
});

describe.skip('single-namespace types', () => {
describe('single-namespace types', () => {
beforeEach(
async () => await testDataLoader.createFtrSavedObjectsData(SPACE_DATA_TO_LOAD)
);

afterEach(async () => await await testDataLoader.deleteFtrSavedObjectsData());
afterEach(async () => await testDataLoader.deleteFtrSavedObjectsData());

const dashboardObject = { type: 'dashboard', id: `cts_dashboard_${spaceId}` };

Expand Down Expand Up @@ -957,7 +957,7 @@ export function copyToSpaceTestSuiteFactory(context: DeploymentAgnosticFtrProvid
[false, false],
[false, true], // createNewCopies enabled
[true, false], // overwrite enabled
// we don't specify tese cases with both overwrite and createNewCopies enabled, since overwrite won't matter in that scenario
// we don't specify test cases with both overwrite and createNewCopies enabled, since overwrite won't matter in that scenario
].forEach(([overwrite, createNewCopies]) => {
const spaces = ['space_2'];
const includeReferences = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class SupertestWithBasicAuth {
const agent = this.supertestWithoutAuth[method](url);

if (this.user) {
agent.auth(this.user.username!, this.user.password!).catch(() => {}); // to silence @typescript-eslint/no-floating-promises;
agent.auth(this.user.username!, this.user.password!);
}

return agent;
Expand Down

0 comments on commit e82dcfe

Please sign in to comment.