This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'mocha'; | |
import {expect} from 'chai'; | |
import parseFormattedAddress from './parse-formatted-address'; | |
describe('parseFormattedAddress', () => { | |
it('supports addresses without country', () => { | |
const place = parseFormattedAddress('100 Best Road, Seven Hills NSW'); | |
expect(place.address).to.equal('100 Best Road'); | |
expect(place.city).to.equal('Seven Hills'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- save to ~/.IntelliJIdea15/config/templates/PolymerTS.xml --> | |
<templateSet group="PolymerTS"> | |
<template name="pe" value="<dom-module id="$TITLE$"> <style> </style> <template> $END$ </template> </dom-module> <script type="text/javascript" src="$TITLE$.js"></script> " description="Polymer Element" toReformat="false" toShortenFQNames="true"> | |
<variable name="TITLE" expression="" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
</context> | |
</template> | |
<template name="@comp" value="/// <reference path="../bower_components/polymer-ts/polymer-ts.d.ts" /> @component("$TITLE$") class $CLASS_NAME$ extends polymer.Base { $END$ } // after the element is defined, we register it in Polymer $CLASS_NAME$.register();" description="Pol |