Skip to content

Commit

Permalink
deploy: 373f6fb
Browse files Browse the repository at this point in the history
  • Loading branch information
aprentout committed Dec 28, 2023
1 parent 906223c commit 65eed44
Show file tree
Hide file tree
Showing 12 changed files with 385 additions and 66 deletions.
3 changes: 3 additions & 0 deletions assets/dummy.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/dummy.css.map

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions assets/dummy.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/dummy.map

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions assets/test-support.js
Original file line number Diff line number Diff line change
Expand Up @@ -28739,36 +28739,36 @@ var __ember_auto_import__ =
/************************************************************************/
/******/ ({

/***/ "../../../../../tmp/broccoli-2020IHyNfERsxpma/cache-275-bundler/staging/l.js":
/***/ "../../../../../tmp/broccoli-1888KnXFSGktmEwf/cache-275-bundler/staging/l.js":
/*!*********************************************************************!*\
!*** /tmp/broccoli-2020IHyNfERsxpma/cache-275-bundler/staging/l.js ***!
!*** /tmp/broccoli-1888KnXFSGktmEwf/cache-275-bundler/staging/l.js ***!
\*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

eval("\nwindow._eai_r = require;\nwindow._eai_d = define;\n\n\n//# sourceURL=webpack://__ember_auto_import__//tmp/broccoli-2020IHyNfERsxpma/cache-275-bundler/staging/l.js?");
eval("\nwindow._eai_r = require;\nwindow._eai_d = define;\n\n\n//# sourceURL=webpack://__ember_auto_import__//tmp/broccoli-1888KnXFSGktmEwf/cache-275-bundler/staging/l.js?");

/***/ }),

/***/ "../../../../../tmp/broccoli-2020IHyNfERsxpma/cache-275-bundler/staging/tests.js":
/***/ "../../../../../tmp/broccoli-1888KnXFSGktmEwf/cache-275-bundler/staging/tests.js":
/*!*************************************************************************!*\
!*** /tmp/broccoli-2020IHyNfERsxpma/cache-275-bundler/staging/tests.js ***!
!*** /tmp/broccoli-1888KnXFSGktmEwf/cache-275-bundler/staging/tests.js ***!
\*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("\nif (typeof document !== 'undefined') {\n __webpack_require__.p = (function(){\n var scripts = document.querySelectorAll('script');\n return scripts[scripts.length - 1].src.replace(/\\/[^/]*$/, '/');\n })();\n}\n\nmodule.exports = (function(){\n var d = _eai_d;\n var r = _eai_r;\n window.emberAutoImportDynamic = function(specifier) {\n if (arguments.length === 1) {\n return r('_eai_dyn_' + specifier);\n } else {\n return r('_eai_dynt_' + specifier)(Array.prototype.slice.call(arguments, 1))\n }\n };\n d('lodash.castarray', [], function() { return __webpack_require__(/*! ./node_modules/lodash.castarray/index.js */ \"./node_modules/lodash.castarray/index.js\"); });\n d('lodash.last', [], function() { return __webpack_require__(/*! ./node_modules/lodash.last/index.js */ \"./node_modules/lodash.last/index.js\"); });\n d('lodash.omit', [], function() { return __webpack_require__(/*! ./node_modules/lodash.omit/index.js */ \"./node_modules/lodash.omit/index.js\"); });\n d('qunit', [], function() { return __webpack_require__(/*! ./node_modules/qunit/qunit/qunit.js */ \"./node_modules/qunit/qunit/qunit.js\"); });\n})();\n\n\n//# sourceURL=webpack://__ember_auto_import__//tmp/broccoli-2020IHyNfERsxpma/cache-275-bundler/staging/tests.js?");
eval("\nif (typeof document !== 'undefined') {\n __webpack_require__.p = (function(){\n var scripts = document.querySelectorAll('script');\n return scripts[scripts.length - 1].src.replace(/\\/[^/]*$/, '/');\n })();\n}\n\nmodule.exports = (function(){\n var d = _eai_d;\n var r = _eai_r;\n window.emberAutoImportDynamic = function(specifier) {\n if (arguments.length === 1) {\n return r('_eai_dyn_' + specifier);\n } else {\n return r('_eai_dynt_' + specifier)(Array.prototype.slice.call(arguments, 1))\n }\n };\n d('lodash.castarray', [], function() { return __webpack_require__(/*! ./node_modules/lodash.castarray/index.js */ \"./node_modules/lodash.castarray/index.js\"); });\n d('lodash.last', [], function() { return __webpack_require__(/*! ./node_modules/lodash.last/index.js */ \"./node_modules/lodash.last/index.js\"); });\n d('lodash.omit', [], function() { return __webpack_require__(/*! ./node_modules/lodash.omit/index.js */ \"./node_modules/lodash.omit/index.js\"); });\n d('qunit', [], function() { return __webpack_require__(/*! ./node_modules/qunit/qunit/qunit.js */ \"./node_modules/qunit/qunit/qunit.js\"); });\n})();\n\n\n//# sourceURL=webpack://__ember_auto_import__//tmp/broccoli-1888KnXFSGktmEwf/cache-275-bundler/staging/tests.js?");

/***/ }),

/***/ 3:
/*!*********************************************************************************************************************************************!*\
!*** multi /tmp/broccoli-2020IHyNfERsxpma/cache-275-bundler/staging/l.js /tmp/broccoli-2020IHyNfERsxpma/cache-275-bundler/staging/tests.js ***!
!*** multi /tmp/broccoli-1888KnXFSGktmEwf/cache-275-bundler/staging/l.js /tmp/broccoli-1888KnXFSGktmEwf/cache-275-bundler/staging/tests.js ***!
\*********************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("__webpack_require__(/*! /tmp/broccoli-2020IHyNfERsxpma/cache-275-bundler/staging/l.js */\"../../../../../tmp/broccoli-2020IHyNfERsxpma/cache-275-bundler/staging/l.js\");\nmodule.exports = __webpack_require__(/*! /tmp/broccoli-2020IHyNfERsxpma/cache-275-bundler/staging/tests.js */\"../../../../../tmp/broccoli-2020IHyNfERsxpma/cache-275-bundler/staging/tests.js\");\n\n\n//# sourceURL=webpack://__ember_auto_import__/multi_/tmp/broccoli-2020IHyNfERsxpma/cache-275-bundler/staging/l.js_/tmp/broccoli-2020IHyNfERsxpma/cache-275-bundler/staging/tests.js?");
eval("__webpack_require__(/*! /tmp/broccoli-1888KnXFSGktmEwf/cache-275-bundler/staging/l.js */\"../../../../../tmp/broccoli-1888KnXFSGktmEwf/cache-275-bundler/staging/l.js\");\nmodule.exports = __webpack_require__(/*! /tmp/broccoli-1888KnXFSGktmEwf/cache-275-bundler/staging/tests.js */\"../../../../../tmp/broccoli-1888KnXFSGktmEwf/cache-275-bundler/staging/tests.js\");\n\n\n//# sourceURL=webpack://__ember_auto_import__/multi_/tmp/broccoli-1888KnXFSGktmEwf/cache-275-bundler/staging/l.js_/tmp/broccoli-1888KnXFSGktmEwf/cache-275-bundler/staging/tests.js?");

/***/ })

Expand Down
105 changes: 94 additions & 11 deletions assets/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -1457,6 +1457,87 @@ define("dummy/tests/integration/components/o-s-s/alert-test", ["@ember/template-
}());
});
});
define("dummy/tests/integration/components/o-s-s/anchor-test", ["@ember/template-factory", "qunit", "ember-qunit", "@ember/test-helpers", "sinon"], function (_templateFactory, _qunit, _emberQunit, _testHelpers, _sinon) {
"use strict";

function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }

function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }

(0, _qunit.module)('Integration | Component | o-s-s/anchor', function (hooks) {
(0, _emberQunit.setupRenderingTest)(hooks);
hooks.beforeEach(function () {
this.router = this.owner.lookup('service:router');
this.transitionToStub = _sinon.default.stub(this.router, 'transitionTo');
});
(0, _qunit.test)('When link is registered in router it render as a anchor element', /*#__PURE__*/function () {
var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(assert) {
return regeneratorRuntime.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return (0, _testHelpers.render)((0, _templateFactory.createTemplateFactory)(
/*
<OSS::Anchor @link="http://www.google.fr" target="_blank" >test</OSS::Anchor>
*/
{
"id": "MPoXTcCS",
"block": "[[[8,[39,0],[[24,\"target\",\"_blank\"]],[[\"@link\"],[\"http://www.google.fr\"]],[[\"default\"],[[[[1,\"test\"]],[]]]]]],[],false,[\"o-s-s/anchor\"]]",
"moduleName": "(unknown template module)",
"isStrictMode": false
}));

case 2:
assert.dom('a').hasNoClass('ember-view');

case 3:
case "end":
return _context.stop();
}
}
}, _callee);
}));

return function (_x) {
return _ref2.apply(this, arguments);
};
}());
(0, _qunit.test)('When link is registered in router it render as a linkTo helper', /*#__PURE__*/function () {
var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(assert) {
return regeneratorRuntime.wrap(function _callee2$(_context2) {
while (1) {
switch (_context2.prev = _context2.next) {
case 0:
_context2.next = 2;
return (0, _testHelpers.render)((0, _templateFactory.createTemplateFactory)(
/*
<OSS::Anchor @link="index" >test</OSS::Anchor>
*/
{
"id": "0RIYP6ik",
"block": "[[[8,[39,0],null,[[\"@link\"],[\"index\"]],[[\"default\"],[[[[1,\"test\"]],[]]]]]],[],false,[\"o-s-s/anchor\"]]",
"moduleName": "(unknown template module)",
"isStrictMode": false
}));

case 2:
assert.dom('a').hasClass('ember-view');

case 3:
case "end":
return _context2.stop();
}
}
}, _callee2);
}));

return function (_x2) {
return _ref3.apply(this, arguments);
};
}());
});
});
define("dummy/tests/integration/components/o-s-s/array-input-test", ["@ember/template-factory", "qunit", "ember-qunit", "@ember/test-helpers", "sinon"], function (_templateFactory, _qunit, _emberQunit, _testHelpers, _sinon) {
"use strict";

Expand Down Expand Up @@ -13701,33 +13782,35 @@ define("dummy/tests/integration/components/o-s-s/layout/sidebar/item-test", ["@e
this.defaultAction = _sinon.default.spy();
this.lockedAction = _sinon.default.spy();
});
(0, _qunit.test)('OnClick defaultAction is triggered', /*#__PURE__*/function () {
(0, _qunit.test)('OnClick it redirect to the @link attribute', /*#__PURE__*/function () {
var _ref8 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7(assert) {
var router;
return regeneratorRuntime.wrap(function _callee7$(_context7) {
while (1) {
switch (_context7.prev = _context7.next) {
case 0:
_context7.next = 2;
router = this.owner.lookup('service:router');
_context7.next = 3;
return (0, _testHelpers.render)((0, _templateFactory.createTemplateFactory)(
/*
<OSS::Layout::Sidebar::Item @icon="far fa-search" @defaultAction={{this.defaultAction}} @lockedAction={{this.lockedAction}}/>
<OSS::Layout::Sidebar::Item @icon="far fa-search" @link="index" @lockedAction={{this.lockedAction}}/>
*/
{
"id": "0MWtuUPe",
"block": "[[[8,[39,0],null,[[\"@icon\",\"@defaultAction\",\"@lockedAction\"],[\"far fa-search\",[30,0,[\"defaultAction\"]],[30,0,[\"lockedAction\"]]]],null]],[],false,[\"o-s-s/layout/sidebar/item\"]]",
"id": "DJdPmwMu",
"block": "[[[8,[39,0],null,[[\"@icon\",\"@link\",\"@lockedAction\"],[\"far fa-search\",\"index\",[30,0,[\"lockedAction\"]]]],null]],[],false,[\"o-s-s/layout/sidebar/item\"]]",
"moduleName": "(unknown template module)",
"isStrictMode": false
}));

case 2:
_context7.next = 4;
case 3:
assert.equal(router.currentRouteName, null);
_context7.next = 6;
return (0, _testHelpers.click)('.oss-sidebar-item');

case 4:
assert.ok(this.defaultAction.calledOnce);
assert.ok(this.lockedAction.notCalled);

case 6:
assert.equal(router.currentRouteName, 'index');

case 7:
case "end":
return _context7.stop();
}
Expand Down
2 changes: 1 addition & 1 deletion assets/tests.map

Large diffs are not rendered by default.

Loading

0 comments on commit 65eed44

Please sign in to comment.