Skip to content

Commit

Permalink
Rename listOrganizations arg "domain" to "domains" (#222)
Browse files Browse the repository at this point in the history
* Modifies the arg to accept an array of strings, instead of a
  string.
  • Loading branch information
willmanduffy authored Sep 14, 2020
1 parent 3d02c41 commit f04fbdb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { PaginationOptions } from '../../common/interfaces/pagination-options.interface';

export interface ListOrganizationsOptions extends PaginationOptions {
domain?: string;
domains?: string[];
}
4 changes: 2 additions & 2 deletions src/portal/portal.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ describe('Portal', () => {
mock.onGet().reply(200, listOrganizationsFixture);

const { data } = await workos.portal.listOrganizations({
domain: 'example.com',
domains: ['example.com'],
});

expect(mock.history.get[0].params).toEqual({
domain: 'example.com',
domains: ['example.com'],
});

expect(mock.history.get[0].url).toEqual('/organizations');
Expand Down

0 comments on commit f04fbdb

Please sign in to comment.