File tree Expand file tree Collapse file tree 6 files changed +8
-8
lines changed
Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1- # AuthorElement [ ![ ] ( https://data.jsdelivr.com/v1/package/npm/@author.io/element-base/badge )] ( https://www.jsdelivr.com/package/npm/@author.io/element-base?path=dist ) [ ![ Build Status] ( https://travis-ci.org/author-elements/base.svg?branch=master&style=for-the-badge )] ( https://travis-ci.org/author-elements/base )
1+ # AuthorBaseElement [ ![ ] ( https://data.jsdelivr.com/v1/package/npm/@author.io/element-base/badge )] ( https://www.jsdelivr.com/package/npm/@author.io/element-base?path=dist ) [ ![ Build Status] ( https://travis-ci.org/author-elements/base.svg?branch=master&style=for-the-badge )] ( https://travis-ci.org/author-elements/base )
22
33This is the base class used to build Author.io custom HTML elements (web components). It provides incredibly lightweight utilities and was designed for optimizing all ` <author-*> ` custom tags.
44
Original file line number Diff line number Diff line change 11var test = require ( 'tape' ) . test
22
33test ( 'Sanity' , function ( t ) {
4- t . ok ( typeof AuthorElement === 'function' , 'Base class detected.' )
4+ t . ok ( typeof AuthorBaseElement === 'function' , 'Base class detected.' )
55 t . end ( )
66} )
77
Original file line number Diff line number Diff line change 11< html >
22 < head >
3- < script src ="author-element .js " type ="module "> </ script >
3+ < script src ="author-base .js " type ="module "> </ script >
44 </ head >
55</ html >
Original file line number Diff line number Diff line change 1- import AuthorElement from '../../author-element .js'
1+ import AuthorBaseElement from '../../author-base .js'
22
33const test = require ( 'tape' ) . test
44
55test ( 'Sanity' , t => {
6- t . ok ( typeof AuthorElement === 'function' , 'Base class detected.' )
6+ t . ok ( typeof AuthorBaseElement === 'function' , 'Base class detected.' )
77 t . end ( )
88} )
99
Original file line number Diff line number Diff line change 1- import AuthorElement from '../../author-element .js'
1+ import AuthorBaseElement from '../../author-base .js'
22
33const test = require ( 'tape' ) . test
44
55test ( 'Extend Class' , t => {
6- class DummyElement extends AuthorElement ( HTMLElement ) {
6+ class DummyElement extends AuthorBaseElement ( HTMLElement ) {
77 constructor ( ) {
88 super ( '<template><slot></slot></template>' )
99 }
Original file line number Diff line number Diff line change 11const test = require ( 'tape' ) . test
22
33test ( 'Sanity' , t => {
4- t . ok ( typeof AuthorElement === 'function' , 'Base class detected.' )
4+ t . ok ( typeof AuthorBaseElement === 'function' , 'Base class detected.' )
55 t . end ( )
66} )
You can’t perform that action at this time.
0 commit comments