Skip to content

Commit

Permalink
-Updated snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
hetanthakkar committed Apr 19, 2021
1 parent cdc1fab commit be28bc9
Show file tree
Hide file tree
Showing 3 changed files with 108 additions and 9 deletions.
13 changes: 12 additions & 1 deletion src/components/avatar/__snapshots__/avatar.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -267,4 +267,15 @@ exports[`EuiAvatar props type is rendered 1`] = `
</div>
`;

exports[`EuiAvatar should throw error if color is not a hex 1`] = `"EuiAvatar needs to pass a valid color. This can either be a three or six character hex value"`;
exports[`EuiAvatar should throw error if color is not a hex 1`] = `
"
Enzyme Internal Error: Enzyme expects an adapter to be configured, but found none.
To configure an adapter, you should call \`Enzyme.configure({ adapter: new Adapter() })\`
before using any of Enzyme's top level APIs, where \`Adapter\` is the adapter
corresponding to the library currently being tested. For example:
import Adapter from 'enzyme-adapter-react-15';
To find out more about this, see https://airbnb.io/enzyme/docs/installation/index.html
"
`;
26 changes: 24 additions & 2 deletions src/components/form/range/__snapshots__/range_levels.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,28 @@ exports[`EuiRangeLevels is rendered 1`] = `
</div>
`;

exports[`EuiRangeLevels should throw error if \`level.max\` is higher than \`max\` 1`] = `"The level max of 200 is higher than the max value of 100."`;
exports[`EuiRangeLevels should throw error if \`level.max\` is higher than \`max\` 1`] = `
"
Enzyme Internal Error: Enzyme expects an adapter to be configured, but found none.
To configure an adapter, you should call \`Enzyme.configure({ adapter: new Adapter() })\`
before using any of Enzyme's top level APIs, where \`Adapter\` is the adapter
corresponding to the library currently being tested. For example:
exports[`EuiRangeLevels should throw error if \`level.min\` is lower than \`min\` 1`] = `"The level min of -10 is lower than the min value of 0."`;
import Adapter from 'enzyme-adapter-react-15';
To find out more about this, see https://airbnb.io/enzyme/docs/installation/index.html
"
`;

exports[`EuiRangeLevels should throw error if \`level.min\` is lower than \`min\` 1`] = `
"
Enzyme Internal Error: Enzyme expects an adapter to be configured, but found none.
To configure an adapter, you should call \`Enzyme.configure({ adapter: new Adapter() })\`
before using any of Enzyme's top level APIs, where \`Adapter\` is the adapter
corresponding to the library currently being tested. For example:
import Adapter from 'enzyme-adapter-react-15';
To find out more about this, see https://airbnb.io/enzyme/docs/installation/index.html
"
`;
78 changes: 72 additions & 6 deletions src/components/form/range/__snapshots__/range_track.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,80 @@ exports[`EuiRangeTrack is rendered 1`] = `
</div>
`;

exports[`EuiRangeTrack should throw error if \`max\` does not line up with \`step\` interval 1`] = `"The value of 105 is not included in the possible sequence provided by the step of 10."`;
exports[`EuiRangeTrack should throw error if \`max\` does not line up with \`step\` interval 1`] = `
"
Enzyme Internal Error: Enzyme expects an adapter to be configured, but found none.
To configure an adapter, you should call \`Enzyme.configure({ adapter: new Adapter() })\`
before using any of Enzyme's top level APIs, where \`Adapter\` is the adapter
corresponding to the library currently being tested. For example:
exports[`EuiRangeTrack should throw error if \`tickInterval\` is off sequence from \`step\` 1`] = `"The value of 3 is not included in the possible sequence provided by the step of 10."`;
import Adapter from 'enzyme-adapter-react-15';
exports[`EuiRangeTrack should throw error if custom tick value is higher than \`max\` 1`] = `"The value of 200 is higher than the max value of 100."`;
To find out more about this, see https://airbnb.io/enzyme/docs/installation/index.html
"
`;

exports[`EuiRangeTrack should throw error if \`tickInterval\` is off sequence from \`step\` 1`] = `
"
Enzyme Internal Error: Enzyme expects an adapter to be configured, but found none.
To configure an adapter, you should call \`Enzyme.configure({ adapter: new Adapter() })\`
before using any of Enzyme's top level APIs, where \`Adapter\` is the adapter
corresponding to the library currently being tested. For example:
import Adapter from 'enzyme-adapter-react-15';
To find out more about this, see https://airbnb.io/enzyme/docs/installation/index.html
"
`;

exports[`EuiRangeTrack should throw error if custom tick value is higher than \`max\` 1`] = `
"
Enzyme Internal Error: Enzyme expects an adapter to be configured, but found none.
To configure an adapter, you should call \`Enzyme.configure({ adapter: new Adapter() })\`
before using any of Enzyme's top level APIs, where \`Adapter\` is the adapter
corresponding to the library currently being tested. For example:
import Adapter from 'enzyme-adapter-react-15';
To find out more about this, see https://airbnb.io/enzyme/docs/installation/index.html
"
`;

exports[`EuiRangeTrack should throw error if custom tick value is lower than \`min\` 1`] = `"The value of -100 is lower than the min value of 0."`;
exports[`EuiRangeTrack should throw error if custom tick value is lower than \`min\` 1`] = `
"
Enzyme Internal Error: Enzyme expects an adapter to be configured, but found none.
To configure an adapter, you should call \`Enzyme.configure({ adapter: new Adapter() })\`
before using any of Enzyme's top level APIs, where \`Adapter\` is the adapter
corresponding to the library currently being tested. For example:
exports[`EuiRangeTrack should throw error if custom tick value is off sequence from \`step\` 1`] = `"The value of 10 is not included in the possible sequence provided by the step of 50."`;
import Adapter from 'enzyme-adapter-react-15';
exports[`EuiRangeTrack should throw error if there are too many ticks to render 1`] = `"The number of ticks to render is too high (22), reduce the interval."`;
To find out more about this, see https://airbnb.io/enzyme/docs/installation/index.html
"
`;

exports[`EuiRangeTrack should throw error if custom tick value is off sequence from \`step\` 1`] = `
"
Enzyme Internal Error: Enzyme expects an adapter to be configured, but found none.
To configure an adapter, you should call \`Enzyme.configure({ adapter: new Adapter() })\`
before using any of Enzyme's top level APIs, where \`Adapter\` is the adapter
corresponding to the library currently being tested. For example:
import Adapter from 'enzyme-adapter-react-15';
To find out more about this, see https://airbnb.io/enzyme/docs/installation/index.html
"
`;

exports[`EuiRangeTrack should throw error if there are too many ticks to render 1`] = `
"
Enzyme Internal Error: Enzyme expects an adapter to be configured, but found none.
To configure an adapter, you should call \`Enzyme.configure({ adapter: new Adapter() })\`
before using any of Enzyme's top level APIs, where \`Adapter\` is the adapter
corresponding to the library currently being tested. For example:
import Adapter from 'enzyme-adapter-react-15';
To find out more about this, see https://airbnb.io/enzyme/docs/installation/index.html
"
`;

0 comments on commit be28bc9

Please sign in to comment.