test: Fix 'mockPackagesResults' not found
When switching to using content sources for distro packages an old fixture was left in the handlers. This fixes the issue.
This commit is contained in:
parent
7e02a3adad
commit
f0bcda7c07
1 changed files with 1 additions and 2 deletions
|
|
@ -31,7 +31,6 @@ import {
|
|||
oscapCustomizations,
|
||||
} from '../fixtures/oscap';
|
||||
import {
|
||||
mockPackagesResults,
|
||||
mockPkgRecommendations,
|
||||
mockSourcesPackagesResults,
|
||||
} from '../fixtures/packages';
|
||||
|
|
@ -75,7 +74,7 @@ export const handlers = [
|
|||
),
|
||||
rest.get(`${IMAGE_BUILDER_API}/packages`, (req, res, ctx) => {
|
||||
const search = req.url.searchParams.get('search');
|
||||
return res(ctx.status(200), ctx.json(mockPackagesResults(search)));
|
||||
return res(ctx.status(200), ctx.json(mockSourcesPackagesResults(search)));
|
||||
}),
|
||||
rest.get(`${IMAGE_BUILDER_API}/architectures/:distro`, (req, res, ctx) => {
|
||||
const { distro } = req.params;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue