Skip to content

Commit af71069

Browse files
Split constraints into smaller functions (#367)
* Start splitting up large functions * Abstract out flip x and flp y together * Update constraint.js * Fix setting left/top * Add some docs, start some tests * Add tests for _calculateOOBAndPinnedTop * Start _flipYTogether tests * Update constraint.spec.js * Add flip X tests
1 parent ae11129 commit af71069

5 files changed

Lines changed: 553 additions & 150 deletions

File tree

babel.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ module.exports = function(api) {
2020
]
2121
],
2222
plugins: [
23+
'babel-plugin-rewire',
2324
'transform-es2015-modules-commonjs'
2425
]
2526
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"@testing-library/jest-dom": "^4.1.0",
4141
"autoprefixer": "^9.7.0",
4242
"babel-jest": "^24.9.0",
43+
"babel-plugin-rewire": "^1.2.0",
4344
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
4445
"chai": "^4.2.0",
4546
"cssnano": "^4.1.10",

0 commit comments

Comments
 (0)