-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b39110b
commit 8405183
Showing
16 changed files
with
10,785 additions
and
3,279 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
// ----------------------------------------------------------------------------- | ||
// Const | ||
// ----------------------------------------------------------------------------- | ||
|
||
export const boundsValid = { | ||
top: { | ||
startPoint: { x: 0, y: 0 }, | ||
endPoint: { x: 100, y: 0 }, | ||
controlPoint1: { x: 10, y: -10 }, | ||
controlPoint2: { x: 90, y: -10 }, | ||
}, | ||
bottom: { | ||
startPoint: { x: 0, y: 100 }, | ||
endPoint: { x: 100, y: 100 }, | ||
controlPoint1: { x: -10, y: 110 }, | ||
controlPoint2: { x: 110, y: 110 }, | ||
}, | ||
left: { | ||
startPoint: { x: 0, y: 0 }, | ||
endPoint: { x: 0, y: 100 }, | ||
controlPoint1: { x: -10, y: -10 }, | ||
controlPoint2: { x: -10, y: 110 }, | ||
}, | ||
right: { | ||
startPoint: { x: 100, y: 0 }, | ||
endPoint: { x: 100, y: 100 }, | ||
controlPoint1: { x: 110, y: -10 }, | ||
controlPoint2: { x: 110, y: 110 }, | ||
}, | ||
} | ||
|
||
// ----------------------------------------------------------------------------- | ||
// Exports | ||
// ----------------------------------------------------------------------------- | ||
|
||
// Define different sets of params to test | ||
// Save the results to JSON files to import into tests | ||
// Set 'skipSnapshot' to 'true' for each item to skip the snapshot | ||
const fixtures = [ | ||
{ | ||
name: '3x3 grid', | ||
skipSnapshot: true, | ||
skipTest: false, | ||
input: { | ||
bounds: boundsValid, | ||
grid: { | ||
columns: 3, | ||
rows: 3, | ||
}, | ||
}, | ||
}, | ||
{ | ||
name: '3x3 grid with gutters', | ||
skipSnapshot: true, | ||
skipTest: true, | ||
input: { | ||
bounds: boundsValid, | ||
grid: { | ||
columns: 3, | ||
rows: 3, | ||
gutters: 0.1, | ||
}, | ||
}, | ||
}, | ||
{ | ||
name: 'Variant columns and rows', | ||
skipSnapshot: true, | ||
input: { | ||
bounds: boundsValid, | ||
grid: { | ||
columns: [5, 1, 5, 4, 5, 1, 5, 1, 5], | ||
rows: [5, 1, 5, 3, 5, 1, 10], | ||
}, | ||
}, | ||
}, | ||
] | ||
|
||
export default fixtures |
Oops, something went wrong.