Removes the need to pass default search params to the select resource step

This commit is contained in:
mabashian
2019-03-28 09:53:59 -04:00
parent a1002b03fa
commit 9880f1e124
4 changed files with 5 additions and 20 deletions

View File

@@ -147,7 +147,8 @@ describe('<SelectResourceStep />', () => {
foo: 'bar'
});
expect(readUsers).toHaveBeenCalledWith({
foo: 'bar'
foo: 'bar',
is_superuser: false
});
wrapper.instance().readTeams({
foo: 'bar'

View File

@@ -15,9 +15,6 @@ describe('<SelectResourceStep />', () => {
<I18nProvider>
<SelectResourceStep
columns={columns}
defaultSearchParams={{
is_superuser: false
}}
displayKey="username"
onRowClick={jest.fn()}
onSearch={jest.fn()}
@@ -40,9 +37,6 @@ describe('<SelectResourceStep />', () => {
<I18nProvider>
<SelectResourceStep
columns={columns}
defaultSearchParams={{
is_superuser: false
}}
displayKey="username"
onRowClick={jest.fn()}
onSearch={handleSearch}
@@ -51,7 +45,6 @@ describe('<SelectResourceStep />', () => {
</I18nProvider>
);
expect(handleSearch).toHaveBeenCalledWith({
is_superuser: false,
order_by: 'username',
page: 1,
page_size: 5
@@ -77,9 +70,6 @@ describe('<SelectResourceStep />', () => {
<I18nProvider>
<SelectResourceStep
columns={columns}
defaultSearchParams={{
is_superuser: false
}}
displayKey="username"
onRowClick={jest.fn()}
onSearch={handleSearch}
@@ -93,7 +83,6 @@ describe('<SelectResourceStep />', () => {
order_by: '-username'
});
expect(handleSearch).toHaveBeenCalledWith({
is_superuser: false,
order_by: '-username',
page: 1
});