bootstrap-bookingsync-sass 2.0.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (187) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +0 -18
  3. data/CHANGELOG.md +8 -0
  4. data/README.md +0 -112
  5. data/assets/javascripts/bookingsync/form.js +1 -1
  6. data/assets/stylesheets/_bootstrap-bookingsync.scss +0 -3
  7. data/assets/stylesheets/bookingsync/_modals.scss +0 -4
  8. data/docs/Gemfile +3 -2
  9. data/docs/content/assets/stylesheets/_icons.scss +0 -5
  10. data/docs/content/assets/stylesheets/_variables.scss +0 -1
  11. data/docs/content/brand/iconography.md +14 -16
  12. data/docs/layouts/sidebar.html +0 -7
  13. data/lib/bootstrap-bookingsync-sass.rb +9 -10
  14. data/lib/bootstrap/bookingsync/version.rb +1 -1
  15. metadata +3 -175
  16. data/.ember-cli +0 -9
  17. data/.eslintignore +0 -20
  18. data/.eslintrc.js +0 -105
  19. data/.jshintrc +0 -32
  20. data/.npmignore +0 -31
  21. data/.template-lintrc.js +0 -5
  22. data/.travis.yml +0 -84
  23. data/.watchmanconfig +0 -3
  24. data/CONTRIBUTING.md +0 -26
  25. data/LICENSE +0 -21
  26. data/addon/.gitkeep +0 -0
  27. data/addon/components/bsy-alert.js +0 -26
  28. data/addon/components/bsy-annotated-section.js +0 -8
  29. data/addon/components/bsy-annotated-section/annotation.js +0 -8
  30. data/addon/components/bsy-annotated-section/content.js +0 -8
  31. data/addon/components/bsy-button.js +0 -29
  32. data/addon/components/bsy-button/close.js +0 -13
  33. data/addon/components/bsy-checkbox.js +0 -16
  34. data/addon/components/bsy-icon.js +0 -33
  35. data/addon/components/bsy-input-addon.js +0 -16
  36. data/addon/components/bsy-input-addon/addon.js +0 -8
  37. data/addon/components/bsy-input-addon/input.js +0 -17
  38. data/addon/components/bsy-input.js +0 -42
  39. data/addon/components/bsy-modal.js +0 -17
  40. data/addon/components/bsy-modal/body.js +0 -8
  41. data/addon/components/bsy-modal/close.js +0 -7
  42. data/addon/components/bsy-modal/footer.js +0 -8
  43. data/addon/components/bsy-modal/header.js +0 -8
  44. data/addon/components/bsy-nav.js +0 -8
  45. data/addon/components/bsy-nav/item.js +0 -10
  46. data/addon/components/bsy-nav/link.js +0 -10
  47. data/addon/components/bsy-popover.js +0 -5
  48. data/addon/components/bsy-radio-buttons.js +0 -10
  49. data/addon/components/bsy-radio-buttons/button.js +0 -20
  50. data/addon/components/bsy-radio.js +0 -14
  51. data/addon/components/bsy-select-multiple.js +0 -14
  52. data/addon/components/bsy-select.js +0 -14
  53. data/addon/components/bsy-sheet.js +0 -7
  54. data/addon/components/bsy-sheet/header.js +0 -7
  55. data/addon/components/bsy-switch.js +0 -15
  56. data/addon/components/bsy-textarea.js +0 -17
  57. data/addon/templates/components/bsy-alert.hbs +0 -6
  58. data/addon/templates/components/bsy-annotated-section.hbs +0 -1
  59. data/addon/templates/components/bsy-annotated-section/annotation.hbs +0 -1
  60. data/addon/templates/components/bsy-annotated-section/content.hbs +0 -1
  61. data/addon/templates/components/bsy-button.hbs +0 -9
  62. data/addon/templates/components/bsy-button/close.hbs +0 -1
  63. data/addon/templates/components/bsy-checkbox.hbs +0 -8
  64. data/addon/templates/components/bsy-input-addon.hbs +0 -3
  65. data/addon/templates/components/bsy-input-addon/addon.hbs +0 -1
  66. data/addon/templates/components/bsy-input-addon/input.hbs +0 -8
  67. data/addon/templates/components/bsy-input.hbs +0 -14
  68. data/addon/templates/components/bsy-modal.hbs +0 -8
  69. data/addon/templates/components/bsy-modal/body.hbs +0 -1
  70. data/addon/templates/components/bsy-modal/close.hbs +0 -1
  71. data/addon/templates/components/bsy-modal/footer.hbs +0 -1
  72. data/addon/templates/components/bsy-modal/header.hbs +0 -2
  73. data/addon/templates/components/bsy-nav.hbs +0 -1
  74. data/addon/templates/components/bsy-nav/item.hbs +0 -1
  75. data/addon/templates/components/bsy-nav/link.hbs +0 -1
  76. data/addon/templates/components/bsy-radio-buttons.hbs +0 -3
  77. data/addon/templates/components/bsy-radio-buttons/button.hbs +0 -7
  78. data/addon/templates/components/bsy-radio.hbs +0 -9
  79. data/addon/templates/components/bsy-select-multiple.hbs +0 -11
  80. data/addon/templates/components/bsy-select.hbs +0 -13
  81. data/addon/templates/components/bsy-sheet.hbs +0 -1
  82. data/addon/templates/components/bsy-sheet/header.hbs +0 -1
  83. data/addon/templates/components/bsy-switch.hbs +0 -9
  84. data/addon/templates/components/bsy-textarea.hbs +0 -8
  85. data/app/.gitkeep +0 -0
  86. data/app/components/bsy-alert.js +0 -1
  87. data/app/components/bsy-annotated-section.js +0 -1
  88. data/app/components/bsy-annotated-section/annotation.js +0 -1
  89. data/app/components/bsy-annotated-section/content.js +0 -1
  90. data/app/components/bsy-button.js +0 -1
  91. data/app/components/bsy-button/close.js +0 -1
  92. data/app/components/bsy-checkbox.js +0 -1
  93. data/app/components/bsy-icon.js +0 -1
  94. data/app/components/bsy-input-addon.js +0 -1
  95. data/app/components/bsy-input-addon/addon.js +0 -1
  96. data/app/components/bsy-input-addon/input.js +0 -1
  97. data/app/components/bsy-input.js +0 -1
  98. data/app/components/bsy-modal.js +0 -1
  99. data/app/components/bsy-modal/body.js +0 -1
  100. data/app/components/bsy-modal/close.js +0 -1
  101. data/app/components/bsy-modal/footer.js +0 -1
  102. data/app/components/bsy-modal/header.js +0 -1
  103. data/app/components/bsy-nav.js +0 -1
  104. data/app/components/bsy-nav/item.js +0 -1
  105. data/app/components/bsy-nav/link.js +0 -1
  106. data/app/components/bsy-popover.js +0 -1
  107. data/app/components/bsy-radio-buttons.js +0 -1
  108. data/app/components/bsy-radio-buttons/button.js +0 -1
  109. data/app/components/bsy-radio.js +0 -1
  110. data/app/components/bsy-select-multiple.js +0 -1
  111. data/app/components/bsy-select.js +0 -1
  112. data/app/components/bsy-sheet.js +0 -1
  113. data/app/components/bsy-sheet/header.js +0 -1
  114. data/app/components/bsy-switch.js +0 -1
  115. data/app/components/bsy-textarea.js +0 -1
  116. data/assets/stylesheets/bookingsync/_ember-power-select.scss +0 -126
  117. data/assets/stylesheets/bookingsync/_ember-toggle.scss +0 -13
  118. data/assets/stylesheets/bookingsync/_ember-tooltips.scss +0 -15
  119. data/blueprints/ember-cli-bootstrap-bookingsync-sass/files/app/styles/app.scss +0 -3
  120. data/blueprints/ember-cli-bootstrap-bookingsync-sass/files/app/templates/application.hbs +0 -31
  121. data/blueprints/ember-cli-bootstrap-bookingsync-sass/files/ember-cli-build.js +0 -28
  122. data/blueprints/ember-cli-bootstrap-bookingsync-sass/index.js +0 -16
  123. data/config/deploy.js +0 -30
  124. data/config/ember-try.js +0 -83
  125. data/config/environment.js +0 -16
  126. data/docs/public/ember/assets/dummy-605390683726afd79cffdf529eb4531a.css +0 -28
  127. data/docs/public/ember/assets/dummy-daae8f1136db419cd268e84ad4f5c989.js +0 -2
  128. data/docs/public/ember/assets/vendor-226e4280b8b1da91e2e598b6726ea1f4.js +0 -28
  129. data/docs/public/ember/assets/vendor-d41d8cd98f00b204e9800998ecf8427e.css +0 -0
  130. data/docs/public/ember/crossdomain.xml +0 -15
  131. data/docs/public/ember/fonts/bookingsync/bookingsync-icons.eot +0 -0
  132. data/docs/public/ember/fonts/bookingsync/bookingsync-icons.svg +0 -60
  133. data/docs/public/ember/fonts/bookingsync/bookingsync-icons.ttf +0 -0
  134. data/docs/public/ember/fonts/bookingsync/bookingsync-icons.woff +0 -0
  135. data/docs/public/ember/fonts/bookingsync/bookingsync-icons.woff2 +0 -0
  136. data/docs/public/ember/fonts/bookingsync/bookingsync-smiles.eot +0 -0
  137. data/docs/public/ember/fonts/bookingsync/bookingsync-smiles.svg +0 -19
  138. data/docs/public/ember/fonts/bookingsync/bookingsync-smiles.ttf +0 -0
  139. data/docs/public/ember/fonts/bookingsync/bookingsync-smiles.woff +0 -0
  140. data/docs/public/ember/fonts/bookingsync/bookingsync-smiles.woff2 +0 -0
  141. data/docs/public/ember/index.html +0 -27
  142. data/docs/public/ember/robots.txt +0 -3
  143. data/ember-cli-build.js +0 -22
  144. data/index.js +0 -34
  145. data/package-lock.json +0 -20985
  146. data/package.json +0 -83
  147. data/testem.js +0 -25
  148. data/tests/dummy/app/app.js +0 -14
  149. data/tests/dummy/app/components/.gitkeep +0 -0
  150. data/tests/dummy/app/components/navbar/component.js +0 -5
  151. data/tests/dummy/app/components/navbar/template.hbs +0 -19
  152. data/tests/dummy/app/components/sidebar/component.js +0 -5
  153. data/tests/dummy/app/components/sidebar/template.hbs +0 -45
  154. data/tests/dummy/app/controllers/.gitkeep +0 -0
  155. data/tests/dummy/app/controllers/index.js +0 -42
  156. data/tests/dummy/app/helpers/.gitkeep +0 -0
  157. data/tests/dummy/app/index.html +0 -25
  158. data/tests/dummy/app/models/.gitkeep +0 -0
  159. data/tests/dummy/app/resolver.js +0 -3
  160. data/tests/dummy/app/router.js +0 -12
  161. data/tests/dummy/app/routes/.gitkeep +0 -0
  162. data/tests/dummy/app/styles/app.scss +0 -8
  163. data/tests/dummy/app/templates/application.hbs +0 -12
  164. data/tests/dummy/app/templates/components/.gitkeep +0 -0
  165. data/tests/dummy/app/templates/index.hbs +0 -299
  166. data/tests/dummy/config/environment.js +0 -52
  167. data/tests/dummy/config/optional-features.json +0 -3
  168. data/tests/dummy/config/targets.js +0 -18
  169. data/tests/dummy/public/robots.txt +0 -3
  170. data/tests/helpers/.gitkeep +0 -0
  171. data/tests/helpers/resolver.js +0 -11
  172. data/tests/index.html +0 -33
  173. data/tests/integration/.gitkeep +0 -0
  174. data/tests/integration/components/bsy-alert-test.js +0 -26
  175. data/tests/integration/components/bsy-button-test.js +0 -26
  176. data/tests/integration/components/bsy-checkbox-test.js +0 -77
  177. data/tests/integration/components/bsy-input-test.js +0 -120
  178. data/tests/integration/components/bsy-nav-test.js +0 -26
  179. data/tests/integration/components/bsy-nav/item-test.js +0 -26
  180. data/tests/integration/components/bsy-nav/link-test.js +0 -26
  181. data/tests/integration/components/bsy-popover-test.js +0 -28
  182. data/tests/integration/components/bsy-sheet-test.js +0 -26
  183. data/tests/integration/components/bsy-sheet/header-test.js +0 -26
  184. data/tests/integration/components/bsy-switch-test.js +0 -21
  185. data/tests/integration/components/bsy-textarea-test.js +0 -13
  186. data/tests/test-helper.js +0 -8
  187. data/vendor/.gitkeep +0 -0
@@ -1,52 +0,0 @@
1
- 'use strict';
2
-
3
- module.exports = function(environment) {
4
- let ENV = {
5
- modulePrefix: 'dummy',
6
- environment,
7
- rootURL: '/',
8
- locationType: 'auto',
9
- EmberENV: {
10
- FEATURES: {
11
- // Here you can enable experimental features on an ember canary build
12
- // e.g. EMBER_NATIVE_DECORATOR_SUPPORT: true
13
- },
14
- EXTEND_PROTOTYPES: {
15
- // Prevent Ember Data from overriding Date.parse.
16
- Date: false
17
- }
18
- },
19
-
20
- APP: {
21
- // Here you can pass flags/options to your application instance
22
- // when it is created
23
- }
24
- };
25
-
26
- if (environment === 'development') {
27
- // ENV.APP.LOG_RESOLVER = true;
28
- // ENV.APP.LOG_ACTIVE_GENERATION = true;
29
- // ENV.APP.LOG_TRANSITIONS = true;
30
- // ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
31
- // ENV.APP.LOG_VIEW_LOOKUPS = true;
32
- }
33
-
34
- if (environment === 'test') {
35
- // Testem prefers this...
36
- ENV.rootURL = '/';
37
- ENV.locationType = 'none';
38
-
39
- // keep test console output quieter
40
- ENV.APP.LOG_ACTIVE_GENERATION = false;
41
- ENV.APP.LOG_VIEW_LOOKUPS = false;
42
-
43
- ENV.APP.rootElement = '#ember-testing';
44
- ENV.APP.autoboot = false;
45
- }
46
-
47
- if (environment === 'production') {
48
- ENV.rootURL = '/ember';
49
- }
50
-
51
- return ENV;
52
- };
@@ -1,3 +0,0 @@
1
- {
2
- "jquery-integration": false
3
- }
@@ -1,18 +0,0 @@
1
- 'use strict';
2
-
3
- const browsers = [
4
- 'last 1 Chrome versions',
5
- 'last 1 Firefox versions',
6
- 'last 1 Safari versions'
7
- ];
8
-
9
- const isCI = !!process.env.CI;
10
- const isProduction = process.env.EMBER_ENV === 'production';
11
-
12
- if (isCI || isProduction) {
13
- browsers.push('ie 11');
14
- }
15
-
16
- module.exports = {
17
- browsers
18
- };
@@ -1,3 +0,0 @@
1
- # http://www.robotstxt.org
2
- User-agent: *
3
- Disallow:
File without changes
@@ -1,11 +0,0 @@
1
- import Resolver from '../../resolver';
2
- import config from '../../config/environment';
3
-
4
- const resolver = Resolver.create();
5
-
6
- resolver.namespace = {
7
- modulePrefix: config.modulePrefix,
8
- podModulePrefix: config.podModulePrefix
9
- };
10
-
11
- export default resolver;
@@ -1,33 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
- <title>Dummy Tests</title>
7
- <meta name="description" content="">
8
- <meta name="viewport" content="width=device-width, initial-scale=1">
9
-
10
- {{content-for "head"}}
11
- {{content-for "test-head"}}
12
-
13
- <link rel="stylesheet" href="{{rootURL}}assets/vendor.css">
14
- <link rel="stylesheet" href="{{rootURL}}assets/dummy.css">
15
- <link rel="stylesheet" href="{{rootURL}}assets/test-support.css">
16
-
17
- {{content-for "head-footer"}}
18
- {{content-for "test-head-footer"}}
19
- </head>
20
- <body>
21
- {{content-for "body"}}
22
- {{content-for "test-body"}}
23
-
24
- <script src="/testem.js" integrity=""></script>
25
- <script src="{{rootURL}}assets/vendor.js"></script>
26
- <script src="{{rootURL}}assets/test-support.js"></script>
27
- <script src="{{rootURL}}assets/dummy.js"></script>
28
- <script src="{{rootURL}}assets/tests.js"></script>
29
-
30
- {{content-for "body-footer"}}
31
- {{content-for "test-body-footer"}}
32
- </body>
33
- </html>
File without changes
@@ -1,26 +0,0 @@
1
- import { module, test } from 'qunit';
2
- import { setupRenderingTest } from 'ember-qunit';
3
- import { render } from '@ember/test-helpers';
4
- import hbs from 'htmlbars-inline-precompile';
5
-
6
- module('Integration | Component | bsy alert', function(hooks) {
7
- setupRenderingTest(hooks);
8
-
9
- test('it renders', async function(assert) {
10
- // Set any properties with this.set('myProperty', 'value');
11
- // Handle any actions with this.on('myAction', function(val) { ... });"
12
-
13
- await render(hbs`{{bsy-alert}}`);
14
-
15
- assert.dom().hasText('');
16
-
17
- // Template block usage:"
18
- await render(hbs`
19
- {{#bsy-alert}}
20
- template block text
21
- {{/bsy-alert}}
22
- `);
23
-
24
- assert.dom().hasText('template block text');
25
- });
26
- });
@@ -1,26 +0,0 @@
1
- import { module, test } from 'qunit';
2
- import { setupRenderingTest } from 'ember-qunit';
3
- import { render } from '@ember/test-helpers';
4
- import hbs from 'htmlbars-inline-precompile';
5
-
6
- module('Integration | Component | bsy button', function(hooks) {
7
- setupRenderingTest(hooks);
8
-
9
- test('it renders', async function(assert) {
10
- // Set any properties with this.set('myProperty', 'value');
11
- // Handle any actions with this.on('myAction', function(val) { ... });"
12
-
13
- await render(hbs`{{bsy-button}}`);
14
-
15
- assert.dom().hasText('');
16
-
17
- // Template block usage:"
18
- await render(hbs`
19
- {{#bsy-button}}
20
- template block text
21
- {{/bsy-button}}
22
- `);
23
-
24
- assert.dom().hasText('template block text');
25
- });
26
- });
@@ -1,77 +0,0 @@
1
- import { module, test } from 'qunit';
2
- import { setupRenderingTest } from 'ember-qunit';
3
- import { click, render } from '@ember/test-helpers';
4
- import hbs from 'htmlbars-inline-precompile';
5
-
6
- module('Integration | Component | bsy-checkbox', function(hooks) {
7
- setupRenderingTest(hooks);
8
-
9
- test('It renders a checkbox', async function(assert) {
10
- await render(hbs`{{bsy-checkbox}}`);
11
- assert.dom('input[type="checkbox"]').exists('Checkbox is rendered');
12
- });
13
-
14
- test('It sets the checked value', async function(assert) {
15
- await render(hbs`{{bsy-checkbox}}`);
16
- assert.dom('input').isNotChecked('Checkbox is not checked');
17
-
18
- await render(hbs`{{bsy-checkbox checked=true}}`);
19
- assert.dom('input').isChecked('Checkbox is checked');
20
-
21
- await render(hbs`{{bsy-checkbox checked=false}}`);
22
- assert.dom('input').isNotChecked('Checkbox is not checked');
23
- });
24
-
25
- test('The first positional param is checked', async function(assert) {
26
- await render(hbs`{{bsy-checkbox true}}`);
27
- assert.dom('input').isChecked('Checkbox is checked');
28
- });
29
-
30
- test('Clicking the checkbox triggers the update action', async function(assert) {
31
- await render(hbs`{{bsy-checkbox value update=(action (mut value))}}`);
32
- await click('input');
33
- assert.equal(this.get('value'), true);
34
-
35
- await click('input');
36
- assert.equal(this.get('value'), false);
37
- });
38
-
39
- test('It can accept an outside toggle of checked', async function(assert) {
40
- await render(hbs`{{bsy-checkbox checked=checked update=(action (mut checked))}}`);
41
-
42
- await click('input');
43
- this.set('checked', false);
44
- await click('input');
45
-
46
- assert.strictEqual(this.get('checked'), true);
47
- });
48
-
49
- test('It can accept an outside toggle of checked - using positional param', async function(assert) {
50
- await render(hbs`{{bsy-checkbox checked update=(action (mut checked))}}`);
51
-
52
- await click('input');
53
- this.set('checked', false);
54
- await click('input');
55
-
56
- assert.strictEqual(this.get('checked'), true);
57
- });
58
-
59
- test('Outside value of null', async function(assert) {
60
- this.set('checked', true);
61
- await render(hbs`{{bsy-checkbox checked}}`);
62
- this.set('checked', null);
63
- assert.dom('input').isNotChecked('Checkbox is not checked');
64
- });
65
-
66
- test('Outside value of undefined', async function(assert) {
67
- this.set('checked', true);
68
- await render(hbs`{{bsy-checkbox checked}}`);
69
- this.set('checked', undefined);
70
- assert.dom('input').isNotChecked('Checkbox is not checked');
71
- });
72
-
73
- test('classNames is not passed as an html attribute', async function(assert) {
74
- await render(hbs`{{bsy-checkbox classNames="testing"}}`);
75
- assert.dom('input').hasNoAttribute('classnames');
76
- });
77
- });
@@ -1,120 +0,0 @@
1
- import { run } from '@ember/runloop';
2
- import { module, test } from 'qunit';
3
- import { setupRenderingTest } from 'ember-qunit';
4
- import { fillIn, blur, render } from '@ember/test-helpers';
5
- import hbs from 'htmlbars-inline-precompile';
6
-
7
- module('Integration | Component | bsy-input', function(hooks) {
8
- setupRenderingTest(hooks);
9
-
10
- hooks.beforeEach(function() {
11
- this.actions = {};
12
- this.send = (actionName, ...args) => this.actions[actionName].apply(this, args);
13
- });
14
-
15
- test('It renders an input', async function(assert) {
16
- await render(hbs`{{bsy-input}}`);
17
- assert.dom('input').exists('Input is rendered');
18
- });
19
-
20
- test('The default type of the input is "text"', async function(assert) {
21
- await render(hbs`{{bsy-input}}`);
22
- assert.dom('input[type="text"]').exists('Input type is text');
23
- });
24
-
25
- test('The type param changes the type of the input', async function(assert) {
26
- await render(hbs`{{bsy-input type="password"}}`);
27
- assert.dom('input[type="password"]').exists('Input type is password');
28
- });
29
-
30
- test('It puts the value into the input', async function(assert) {
31
- await render(hbs`{{bsy-input value="test"}}`);
32
- assert.dom('input').hasValue('test', 'input\'s value is \'test\'');
33
- });
34
-
35
- test('Changing the value updates the input', async function(assert) {
36
- this.set('value', 'foo');
37
- await render(hbs`{{bsy-input value}}`);
38
- assert.dom('input').hasValue('foo', 'Input\'s value is \'foo\'');
39
- this.set('value', 'bar');
40
- assert.dom('input').hasValue('bar', 'Input\'s value is \'bar\'');
41
- });
42
-
43
- test('Value can be the first positional param', async function(assert) {
44
- await render(hbs`{{bsy-input "test"}}`);
45
- assert.dom('input').hasValue('test', 'input\'s value is \'test\'');
46
- });
47
-
48
- test('Outside positional param value of null', async function(assert) {
49
- this.set('value', 'hello world');
50
- await render(hbs`{{bsy-input value}}`);
51
- this.set('value', null);
52
- assert.dom('input').hasValue('');
53
- });
54
-
55
- test('Outside positional param value of undefined', async function(assert) {
56
- this.set('value', 'hello world');
57
- await render(hbs`{{bsy-input value}}`);
58
- this.set('value', undefined);
59
- assert.dom('input').hasValue('');
60
- });
61
-
62
- test('Typing in the input triggers the update action', async function(assert) {
63
- await render(hbs`{{bsy-input value update=(action (mut value))}}`);
64
- await fillIn('input', 'foo');
65
- assert.equal(this.get('value'), 'foo', 'Value is updated to \'foo\'');
66
- });
67
-
68
- test('Changing the input value triggers the update action', async function(assert) {
69
- await render(hbs`{{bsy-input value update=(action (mut value))}}`);
70
- await fillIn('input', 'foo');
71
- await blur('input');
72
- assert.equal(this.get('value'), 'foo', 'Value is updated to \'foo\'');
73
- });
74
-
75
- test('Updating the value binding does not send an update action', async function(assert) {
76
- assert.expect(1);
77
- let fired = false;
78
- this.actions.update = () => fired = true;
79
- this.set('value', 'hey');
80
- await render(hbs`{{bsy-input value update=(action 'update')}}`);
81
- this.set('value', 'ho');
82
- assert.equal(fired, false, 'The update action should not have fired');
83
- });
84
-
85
- test('Does not throw an error updating an number input', async function(assert) {
86
- assert.expect(0);
87
- this.set('value', 1);
88
-
89
- await render(hbs`{{bsy-input value update=(action (mut value))}}`);
90
-
91
- fillIn('input', '12');
92
- });
93
-
94
- test('Can bind the placeholder attribute', async function(assert) {
95
- await render(hbs`{{bsy-input placeholder="testing"}}`);
96
- assert.dom('input').hasAttribute('placeholder', 'testing');
97
- });
98
-
99
- test('positionalParamValue is not passed as an html attribute', async function(assert) {
100
- await render(hbs`{{bsy-input "testing"}}`);
101
- assert.dom('input').hasNoAttribute('positionalparamvalue');
102
- });
103
-
104
- test('classNames is not passed as an html attribute', async function(assert) {
105
- await render(hbs`{{bsy-input classNames="testing"}}`);
106
- assert.dom('input').hasNoAttribute('classnames');
107
- });
108
-
109
- test('update is not passed as an html attribute', async function(assert) {
110
- await render(hbs`{{bsy-input update=(action (mut value))}}`);
111
- assert.dom('input').hasNoAttribute('update');
112
- });
113
-
114
- test('Does not update value when it is destroyed', async function(assert) {
115
- this.set('value', 'foo');
116
- await render(hbs`{{bsy-input value update=(action (mut value))}}`);
117
- run(() => this.clearRender());
118
- assert.equal(this.get('value'), 'foo', 'Value is still foo');
119
- });
120
- });
@@ -1,26 +0,0 @@
1
- import { module, test } from 'qunit';
2
- import { setupRenderingTest } from 'ember-qunit';
3
- import { render } from '@ember/test-helpers';
4
- import hbs from 'htmlbars-inline-precompile';
5
-
6
- module('Integration | Component | bsy nav', function(hooks) {
7
- setupRenderingTest(hooks);
8
-
9
- test('it renders', async function(assert) {
10
- // Set any properties with this.set('myProperty', 'value');
11
- // Handle any actions with this.on('myAction', function(val) { ... });"
12
-
13
- await render(hbs`{{bsy-nav}}`);
14
-
15
- assert.dom().hasText('');
16
-
17
- // Template block usage:"
18
- await render(hbs`
19
- {{#bsy-nav}}
20
- template block text
21
- {{/bsy-nav}}
22
- `);
23
-
24
- assert.dom().hasText('template block text');
25
- });
26
- });
@@ -1,26 +0,0 @@
1
- import { module, test } from 'qunit';
2
- import { setupRenderingTest } from 'ember-qunit';
3
- import { render } from '@ember/test-helpers';
4
- import hbs from 'htmlbars-inline-precompile';
5
-
6
- module('Integration | Component | bsy nav/item', function(hooks) {
7
- setupRenderingTest(hooks);
8
-
9
- test('it renders', async function(assert) {
10
- // Set any properties with this.set('myProperty', 'value');
11
- // Handle any actions with this.on('myAction', function(val) { ... });"
12
-
13
- await render(hbs`{{bsy-nav/item}}`);
14
-
15
- assert.dom().hasText('');
16
-
17
- // Template block usage:"
18
- await render(hbs`
19
- {{#bsy-nav/item}}
20
- template block text
21
- {{/bsy-nav/item}}
22
- `);
23
-
24
- assert.dom().hasText('template block text');
25
- });
26
- });
@@ -1,26 +0,0 @@
1
- import { module, test } from 'qunit';
2
- import { setupRenderingTest } from 'ember-qunit';
3
- import { render } from '@ember/test-helpers';
4
- import hbs from 'htmlbars-inline-precompile';
5
-
6
- module('Integration | Component | bsy nav/link', function(hooks) {
7
- setupRenderingTest(hooks);
8
-
9
- test('it renders', async function(assert) {
10
- // Set any properties with this.set('myProperty', 'value');
11
- // Handle any actions with this.on('myAction', function(val) { ... });"
12
-
13
- await render(hbs`{{bsy-nav/link}}`);
14
-
15
- assert.dom().hasText('');
16
-
17
- // Template block usage:"
18
- await render(hbs`
19
- {{#bsy-nav/link}}
20
- template block text
21
- {{/bsy-nav/link}}
22
- `);
23
-
24
- assert.dom().hasText('template block text');
25
- });
26
- });