Skip to content

Commit

Permalink
Add lightning icon
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-paterson committed Sep 8, 2021
1 parent e39a145 commit 3faa243
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 2 deletions.
6 changes: 6 additions & 0 deletions addon/components/svg-repo/icons/icon-lightning.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import SvgBase from 'svg-repo/components/svg-base';
import layout from '../../../templates/components/svg-repo/icons/icon-lightning';

export default SvgBase.extend({
layout,
});
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 52 104.2" class="{{class}} single-colour icon-link" data-test-icon="icon-link"><polygon points="16.7 0 0 51.5 19.1 52.1 2.7 104.2 52 36.5 29.8 36.1 50 0 "/></svg>
1 change: 1 addition & 0 deletions app/components/svg-repo/icons/icon-lightning.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'svg-repo/components/svg-repo/icons/icon-lightning';
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "svg-repo",
"version": "1.0.8",
"version": "1.0.9",
"description": "The default blueprint for ember-cli addons.",
"keywords": [
"ember-addon"
Expand Down
26 changes: 26 additions & 0 deletions tests/integration/components/svg-repo/icons/icon-lightning-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-lightning', 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-lightning}}`);

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

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

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

0 comments on commit 3faa243

Please sign in to comment.