Skip to content

Commit

Permalink
Added sortable icon.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Paterson committed Dec 17, 2018
1 parent c01aa01 commit 630aa52
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 0 deletions.
7 changes: 7 additions & 0 deletions addon/components/svg-repo/icons/icon-sortable.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import Component from '@ember/component';
import layout from '../../../templates/components/svg-repo/icons/icon-sortable';

export default Component.extend({
layout,
tagName: ''
});
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32.86 69.95" class="icon-sortable {{class}}"><polygon points="16.43 0 32.86 28.46 0 28.46 16.43 0"/><polygon points="16.43 69.95 32.86 41.49 0 41.49 16.43 69.95"/></svg>
1 change: 1 addition & 0 deletions app/components/svg-repo/icons/icon-sortable.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'svg-repo/components/svg-repo/icons/icon-sortable';
26 changes: 26 additions & 0 deletions tests/integration/components/svg-repo/icons/icon-sortable-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';

module('Integration | Component | svg-repo/icons/icon-sortable', function(hooks) {
setupRenderingTest(hooks);

test('it renders', async function(assert) {
// Set any properties with this.set('myProperty', 'value');
// Handle any actions with this.set('myAction', function(val) { ... });

await render(hbs`{{svg-repo/icons/icon-sortable}}`);

assert.equal(this.element.textContent.trim(), '');

// Template block usage:
await render(hbs`
{{#svg-repo/icons/icon-sortable}}
template block text
{{/svg-repo/icons/icon-sortable}}
`);

assert.equal(this.element.textContent.trim(), 'template block text');
});
});

0 comments on commit 630aa52

Please sign in to comment.