Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@looker/components-test-utils

Package Overview
Dependencies
Maintainers
10
Versions
156
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@looker/components-test-utils - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## [1.1.2](https://github.com/looker-open-source/components/compare/v1.1.1...v1.1.2) (2021-03-31)
**Note:** Version bump only for package @looker/components-test-utils
## [1.1.1](https://github.com/looker-open-source/components/compare/v1.1.0...v1.1.1) (2021-03-31)

@@ -8,0 +16,0 @@

12

lib/cjs/create_with_theme.js

@@ -18,15 +18,11 @@ "use strict";

var withThemeProvider = function withThemeProvider(Component) {
return _react2.default.createElement(_componentsProviders.ComponentsProvider, {
globalStyle: false
}, Component);
};
const withThemeProvider = Component => _react2.default.createElement(_componentsProviders.ComponentsProvider, {
globalStyle: false
}, Component);
exports.withThemeProvider = withThemeProvider;
var renderWithTheme = function renderWithTheme(Component, options) {
return (0, _react.render)(withThemeProvider(Component), options);
};
const renderWithTheme = (Component, options) => (0, _react.render)(withThemeProvider(Component), options);
exports.renderWithTheme = renderWithTheme;
//# sourceMappingURL=create_with_theme.js.map

@@ -8,33 +8,25 @@ "use strict";

require("core-js/modules/es.array.map.js");
var _react = require("@testing-library/react");
var openCombobox = function openCombobox(placeholderText) {
return _react.fireEvent.mouseDown(_react.screen.getByPlaceholderText(placeholderText));
};
const openCombobox = placeholderText => _react.fireEvent.mouseDown(_react.screen.getByPlaceholderText(placeholderText));
exports.openCombobox = openCombobox;
var closeCombobox = function closeCombobox() {
return _react.fireEvent.click(document);
};
const closeCombobox = () => _react.fireEvent.click(document);
exports.closeCombobox = closeCombobox;
var getComboboxOptions = function getComboboxOptions() {
return _react.screen.getAllByRole('option');
};
const getComboboxOptions = () => _react.screen.getAllByRole('option');
exports.getComboboxOptions = getComboboxOptions;
var getComboboxOptionText = function getComboboxOptionText(el) {
return (0, _react.getNodeText)(el.children[1]);
};
const getComboboxOptionText = el => (0, _react.getNodeText)(el.children[1]);
exports.getComboboxOptionText = getComboboxOptionText;
var getAllComboboxOptionText = function getAllComboboxOptionText() {
return getComboboxOptions().map(getComboboxOptionText);
};
const getAllComboboxOptionText = () => getComboboxOptions().map(getComboboxOptionText);
exports.getAllComboboxOptionText = getAllComboboxOptionText;
//# sourceMappingURL=comboboxHelpers.js.map

@@ -11,11 +11,9 @@ "use strict";

function firePasteEvent(element, value) {
var eventProperties = {
const eventProperties = {
clipboardData: {
getData: function getData() {
return value;
}
getData: () => value
}
};
var pasteEvent = _react.createEvent.paste(element, eventProperties);
const pasteEvent = _react.createEvent.paste(element, eventProperties);

@@ -22,0 +20,0 @@ (0, _react.fireEvent)(element, pasteEvent);

@@ -0,1 +1,2 @@

import "core-js/modules/es.array.map.js";
import { fireEvent, getNodeText, screen } from '@testing-library/react';

@@ -2,0 +3,0 @@ export var openCombobox = function openCombobox(placeholderText) {

{
"name": "@looker/components-test-utils",
"license": "MIT",
"version": "1.1.1",
"version": "1.1.2",
"main": "lib/cjs/index.js",

@@ -21,3 +21,3 @@ "module": "lib/index.js",

"devDependencies": {
"@looker/components-providers": "^1.1.1",
"@looker/components-providers": "^1.1.2",
"@testing-library/react": "^11.2.2",

@@ -35,3 +35,3 @@ "@types/jest": "^26.0.19",

},
"gitHead": "e1ce2b55aef13339f01385749cd4cf34c5c8fdeb"
"gitHead": "b7b0411333ee5247ec8f492dccc3b873cc032cec"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc