Code coverage report for src\syntax-highlighter.js

Statements: 100% (6 / 6)      Branches: 100% (0 / 0)      Functions: 100% (1 / 1)      Lines: 100% (5 / 5)      Ignored: none     

All files » src/ » syntax-highlighter.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 151 1         1 1       1      
import {customAttribute, inject} from 'aurelia-framework';
import 'prismjs';
 
@customAttribute('au-syntax')
@inject(Element)
export class SyntaxHighlighter {
  constructor(element) {
    this.element = element;
  }
 
  bind() {
    Prism.highlightElement(this.element);
  }
}