-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #345 from dabapps/resize-observer
Footer and NavBar ResizeObserver
- Loading branch information
Showing
8 changed files
with
184 additions
and
148 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@dabapps/roe", | ||
"version": "0.12.1", | ||
"version": "0.12.2", | ||
"description": "A collection of React components, styles, mixins, and atomic CSS classes to aid with the development of web applications.", | ||
"main": "dist/js/index.js", | ||
"types": "dist/js/index.d.ts", | ||
|
@@ -16,8 +16,9 @@ | |
"test-dist-react-16": "npm i @types/[email protected] @types/[email protected] --no-save && tsc --project 'tsconfig.json' --noEmit && npm run dist", | ||
"test-dist-react-15": "npm i @types/[email protected] @types/[email protected] --no-save && tsc --project 'tsconfig.json' --noEmit && npm run dist", | ||
"test-dist": "npm run test-dist-react-15 && npm run test-dist-react-16", | ||
"typecheck": "tsc --project tsconfig.json --noEmit", | ||
"tests": "jest", | ||
"test": "npm run prettier-check && npm run lint && npm run tests -- --coverage --runInBand && npm run test-dist", | ||
"test": "npm run prettier-check && npm run lint && npm run typecheck && npm run tests -- --coverage --runInBand && npm run test-dist", | ||
"budo": "budo src/less/index.less examples/index.tsx --live -- -t node-lessify -p [tsify -p tsconfig.examples.json]", | ||
"prepublishOnly": "./scripts/dist" | ||
}, | ||
|
@@ -47,6 +48,7 @@ | |
}, | ||
"homepage": "https://github.com/dabapps/roe#readme", | ||
"dependencies": { | ||
"@juggle/resize-observer": "^3.2.0", | ||
"@types/classnames": "^2.2.0", | ||
"@types/cookie": "^0.3.1", | ||
"@types/random-seed": "^0.3.2", | ||
|
@@ -130,6 +132,7 @@ | |
}, | ||
"testRegex": "tests/.+\\.(ts|tsx|js|jsx)$", | ||
"testPathIgnorePatterns": [ | ||
"<rootDir>/tests/__mocks__/", | ||
"<rootDir>/tests/helpers/" | ||
], | ||
"moduleFileExtensions": [ | ||
|
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,16 @@ | ||
export const mockConstructor = jest.fn(); | ||
|
||
export const mockObserve = jest.fn(); | ||
export const mockUnobserve = jest.fn(); | ||
export const mockDisconnect = jest.fn(); | ||
|
||
class MockResizeObserver { | ||
public observe = mockObserve; | ||
public unobserve = mockUnobserve; | ||
public disconnect = mockDisconnect; | ||
public constructor(callback: () => void) { | ||
mockConstructor(callback); | ||
} | ||
} | ||
|
||
export { MockResizeObserver as ResizeObserver }; |
Oops, something went wrong.