'use strict' ; import assert from 'power-assert' ; import { genPlantUmlUrl } from '../../scripts/Utils' ; describe ( 'Scripts Util' , ( ) => { beforeEach ( ( ) => { } ) ; it ( 'Should gen current URL' , ( ) => { const url = 'http://www.plantuml.com/plantuml/png/SoWkIImgAStDuNBAJrBGjLDmpCbCJbMmKiX8pSd9vt98pKi1IW80' ; const str = `@startuml
Bob -> Alice : hello
@enduml` ; const genUrl = genPlantUmlUrl ( str ) ; assert . equal ( genUrl , url ) ; } ) ; } ) ;