Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(td): create staged quote key reference draft preset #483

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/nice-ears-grin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@commercetools-test-data/commons': patch
---

Adds staged quote key reference preset
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { TKeyReference } from '../types';
import productTypeReference from './product-type-reference';

it('should build category reference', () => {
it('should build product type reference', () => {
const built = productTypeReference().build<TKeyReference>();
expect(built).toEqual({
key: expect.any(String),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { TKeyReference } from '../types';
import shippingMethodReference from './shipping-method-reference';

it('should build category reference', () => {
it('should build shipping method reference', () => {
const built = shippingMethodReference().build<TKeyReference>();
expect(built).toEqual({
key: expect.any(String),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import type { TKeyReference } from '../types';
import stagedQuote from './staged-quote-reference';

it('should build staged quote reference', () => {
const built = stagedQuote().build<TKeyReference>();
expect(built).toEqual({
key: expect.any(String),
typeId: 'staged-quote',
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import KeyReference from '../builder';
import type { TKeyReferenceBuilder } from '../types';

const stagedQuote = (): TKeyReferenceBuilder =>
KeyReference().typeId('staged-quote');

export default stagedQuote;
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { TKeyReference } from '../types';
import taxCategoryReference from './tax-category-reference';

it('should build category reference', () => {
it('should build tax category reference', () => {
const built = taxCategoryReference().build<TKeyReference>();
expect(built).toEqual({
key: expect.any(String),
Expand Down
Loading