-
-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
bfa1dcc
commit 139e289
Showing
14 changed files
with
114 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,11 +20,14 @@ | |
"commit": "git-cz && git push origin", | ||
"watch:build": "babel --watch -d lib/ src/", | ||
"watch:test": "npm run test -- -w", | ||
"switch:latest": "replace \"from 'mobx3'\" \"from 'mobx'\" src -r", | ||
"switch:mobx": "replace \"from 'mobx5'\" \"from 'mobx'\" src -r", | ||
"switch:mobx5": "replace \"from 'mobx4'\" \"from 'mobx5'\" src -r", | ||
"switch:mobx4": "replace \"from 'mobx3'\" \"from 'mobx4'\" src -r", | ||
"switch:mobx3": "replace \"from 'mobx'\" \"from 'mobx3'\" src -r", | ||
"test": "npm run test:latest && npm run test:mobx3", | ||
"test:latest": "cross-env TEST=true mocha tests --compilers js:babel-register", | ||
"test:mobx3": "npm run switch:mobx3 && cross-env TEST=true mocha tests --compilers js:babel-register && npm run switch:latest", | ||
"test:mobx5": "npm run switch:mobx5 && cross-env TEST=true mocha tests --compilers js:babel-register", | ||
"test:mobx4": "npm run switch:mobx4 && cross-env TEST=true mocha tests --compilers js:babel-register", | ||
"test:mobx3": "npm run switch:mobx3 && cross-env TEST=true mocha tests --compilers js:babel-register", | ||
"test": "npm run test:mobx3 && npm run test:mobx4 && npm run test:mobx5 && npm run switch:mobx", | ||
"cover": "nyc npm test", | ||
"coverage:check": "nyc check-coverage --satements 95 --branches 80 --functions 95 --lines 95", | ||
"coverage:report": "nyc report --reporter=text-lcov > coverage.lcov && codecov", | ||
|
@@ -62,7 +65,7 @@ | |
"lodash": "^4.16.2" | ||
}, | ||
"peerDependencies": { | ||
"mobx": "^2.5.0 || ^3.0.0 || ^4.0.0" | ||
"mobx": "^2.5.0 || ^3.0.0 || ^4.0.0 || ^5.0.0" | ||
}, | ||
"devDependencies": { | ||
"ajv": "^5.2.2", | ||
|
@@ -87,8 +90,10 @@ | |
"eslint-plugin-import": "2.8.0", | ||
"husky": "0.13.1", | ||
"json-loader": "0.5.4", | ||
"mobx": "^4.0.0", | ||
"mobx3": "npm:[email protected]", | ||
"mobx": "^5.0.0", | ||
"mobx5": "npm:mobx@^5.0.0", | ||
"mobx4": "npm:mobx@^4.0.0", | ||
"mobx3": "npm:mobx@^3.0.0", | ||
"mocha": "3.2.0", | ||
"npm-run-all": "4.0.1", | ||
"nyc": "^10.2.0", | ||
|
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,20 @@ | ||
import { Form } from '../../../../src'; | ||
|
||
const fields = [{ | ||
name: '1a', | ||
value: ' ', | ||
label: '1aa', | ||
}, { | ||
name: '2a', | ||
value: ' ', | ||
label: '2aa', | ||
}, { | ||
name: '3a', | ||
value: ' ', | ||
label: '3aa', | ||
}]; | ||
|
||
class NewForm extends Form {} | ||
|
||
export default new NewForm({ fields }, { name: 'Fixes-425' }); | ||
|
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,13 @@ | ||
import { expect } from 'chai'; | ||
|
||
import $ from './data/_.fixes'; // FORMS | ||
|
||
describe('Check Fixes $425 labels', () => { | ||
it('$425 labels() check', () => | ||
expect($.$425.labels()) | ||
.to.be.deep.equal({ | ||
'1a': '1aa', | ||
'2a': '2aa', | ||
'3a': '3aa', | ||
})); | ||
}); |
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,9 @@ | ||
import { expect } from 'chai'; | ||
|
||
import $ from './data/_.fixes'; // FORMS | ||
|
||
|
||
describe('$L Field types checks', () => { | ||
it('$L email type should be equal to "email"', () => | ||
expect($.$L.$('email').type).to.be.equal('email')); // #415 | ||
}); |
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 |
---|---|---|
|
@@ -4268,13 +4268,17 @@ [email protected], "mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.0, mkd | |
dependencies: | ||
minimist "0.0.8" | ||
|
||
"mobx3@npm:[email protected]": | ||
version "3.0.0" | ||
resolved "https://registry.yarnpkg.com/mobx/-/mobx-3.0.0.tgz#6d9fb326d51bac9994dd8fe6762ace6ba2bef2ac" | ||
"mobx3@npm:mobx@^3.0.0": | ||
version "3.6.2" | ||
resolved "https://registry.yarnpkg.com/mobx/-/mobx-3.6.2.tgz#fb9f5ff5090539a1ad54e75dc4c098b602693320" | ||
|
||
mobx@^4.0.0: | ||
version "4.1.1" | ||
resolved "https://registry.yarnpkg.com/mobx/-/mobx-4.1.1.tgz#7ce7ef92b22e85271d1fc274a124d7fa32fcceeb" | ||
"mobx4@npm:mobx@^4.0.0": | ||
version "4.3.1" | ||
resolved "https://registry.yarnpkg.com/mobx/-/mobx-4.3.1.tgz#334e5aab4916b1d43f0faf3605a64b1b4b3ccb8d" | ||
|
||
"mobx5@npm:mobx@^5.0.0", mobx@^5.0.0: | ||
version "5.0.3" | ||
resolved "https://registry.yarnpkg.com/mobx/-/mobx-5.0.3.tgz#53b97f2a0f9b0dd7774c96249f81bf2d513d8e1c" | ||
|
||
[email protected]: | ||
version "3.2.0" | ||
|