Skip to content

Commit

Permalink
test(hub-sites): test the domain re-exports
Browse files Browse the repository at this point in the history
affects: @esri/hub-sites
  • Loading branch information
drewdaemon committed Jul 22, 2021
1 parent 0bf7457 commit 0ab0adc
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/sites/src/domains/index.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,30 @@
export {
/* istanbul ignore next */
addDomain,
/* istanbul ignore next */
domainExistsPortal,
/* istanbul ignore next */
domainExists,
/* istanbul ignore next */
ensureUniqueDomainName,
/* istanbul ignore next */
getDomainsForSite,
/* istanbul ignore next */
getUniqueDomainNamePortal,
/* istanbul ignore next */
getUniqueDomainName,
/* istanbul ignore next */
isDomainForLegacySite,
/* istanbul ignore next */
isDomainUsedElsewhere,
/* istanbul ignore next */
isValidDomain,
/* istanbul ignore next */
lookupDomain,
/* istanbul ignore next */
removeDomain,
/* istanbul ignore next */
updateDomain,
/* istanbul ignore next */
IDomainEntry,
} from "@esri/hub-common";
36 changes: 36 additions & 0 deletions packages/sites/test/domains/index.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import {
addDomain,
domainExistsPortal,
domainExists,
ensureUniqueDomainName,
getDomainsForSite,
getUniqueDomainNamePortal,
getUniqueDomainName,
isDomainForLegacySite,
isDomainUsedElsewhere,
isValidDomain,
lookupDomain,
removeDomain,
updateDomain,
IDomainEntry,
} from "../../src";

describe("proxy domain exports", () => {
it("they are all defined", () => {
[
addDomain,
domainExistsPortal,
domainExists,
ensureUniqueDomainName,
getDomainsForSite,
getUniqueDomainNamePortal,
getUniqueDomainName,
isDomainForLegacySite,
isDomainUsedElsewhere,
isValidDomain,
lookupDomain,
removeDomain,
updateDomain,
].forEach((fn) => expect(fn).toBeDefined());
});
});

0 comments on commit 0ab0adc

Please sign in to comment.