File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
javascript/cart-checkout-validation/default/src
rust/cart-checkout-validation/default/src Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export function run(input) {
15
15
.filter(({ quantity }) => quantity > 1)
16
16
.map(() => ({
17
17
localizedMessage: "Not possible to order more than one of each",
18
- target: "cart",
18
+ target: "$. cart",
19
19
}));
20
20
21
21
return {
@@ -34,7 +34,7 @@ export function run(input: RunInput): FunctionRunResult {
34
34
.filter(({ quantity }) => quantity > 1)
35
35
.map(() => ({
36
36
localizedMessage: "Not possible to order more than one of each",
37
- target: "cart",
37
+ target: "$. cart",
38
38
}));
39
39
40
40
return {
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ describe('cart checkout validation function', () => {
20
20
const expected = /** @type {FunctionRunResult} */ ({ errors: [
21
21
{
22
22
localizedMessage: "Not possible to order more than one of each",
23
- target: "cart"
23
+ target: "$. cart"
24
24
}
25
25
] });
26
26
@@ -61,7 +61,7 @@ describe('cart checkout validation function', () => {
61
61
const expected: FunctionRunResult = { errors: [
62
62
{
63
63
localizedMessage: "Not possible to order more than one of each",
64
- target: "cart"
64
+ target: "$. cart"
65
65
}
66
66
] };
67
67
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ fn run(input: input::ResponseData) -> Result<output::FunctionRunResult> {
19
19
{
20
20
errors. push ( output:: FunctionError {
21
21
localized_message : "Not possible to order more than one of each" . to_owned ( ) ,
22
- target : "cart" . to_owned ( ) ,
22
+ target : "$. cart" . to_owned ( ) ,
23
23
} )
24
24
}
25
25
Ok ( output:: FunctionRunResult { errors } )
@@ -51,7 +51,7 @@ mod tests {
51
51
let expected = FunctionRunResult {
52
52
errors : vec ! [ FunctionError {
53
53
localized_message: "Not possible to order more than one of each" . to_owned( ) ,
54
- target: "cart" . to_owned( ) ,
54
+ target: "$. cart" . to_owned( ) ,
55
55
} ] ,
56
56
} ;
57
57
You can’t perform that action at this time.
0 commit comments