-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(hub-sites): test the domain re-exports
affects: @esri/hub-sites
- Loading branch information
1 parent
0bf7457
commit 0ab0adc
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()); | ||
}); | ||
}); |