ci: fix backend tests due to new updates

This commit is contained in:
Danny Avila 2024-05-18 15:44:22 -04:00
parent 6082e26716
commit 3eabbd572e
No known key found for this signature in database
GPG key ID: 2DD9CC89B9B50364
5 changed files with 14 additions and 13 deletions

View file

@ -73,12 +73,12 @@ describe('domainParser', () => {
const TLD = '.com';
// Non-azure request
it('returns domain as is if not azure', async () => {
it('does not return domain as is if not azure', async () => {
const domain = `example.com${actionDomainSeparator}test${actionDomainSeparator}`;
const result1 = await domainParser(reqNoAzure, domain, false);
const result2 = await domainParser(reqNoAzure, domain, true);
expect(result1).toEqual(domain);
expect(result2).toEqual(domain);
expect(result1).not.toEqual(domain);
expect(result2).not.toEqual(domain);
});
// Test for Empty or Null Inputs