This file contains hidden or 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
| it('shows feet and inches based on the value passed', () => { | |
| expect(pipe.transform(70)).toEqual('5 ft. 10 in.'); | |
| }); |
This file contains hidden or 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
| it('should render title in a h1 tag', () => { | |
| fixture.detectChanges(); | |
| let compiled = fixture.debugElement.nativeElement; | |
| expect(compiled.querySelector('h1').textContent) | |
| .toContain('Redux Angular 2 Example with Kendo UI'); | |
| }); |
This file contains hidden or 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
| plugins: [ | |
| require('karma-jasmine'), | |
| require('karma-chrome-launcher'), | |
| require('karma-phantomjs-launcher'), // add the phantom launcher | |
| require('karma-remap-istanbul'), | |
| require('angular-cli/plugins/karma') | |
| ] |
This file contains hidden or 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
| { | |
| "name": "flowroute-cli", | |
| "version": "0.0.1", | |
| "description": "Simple command line interface for the Flowroute numbers API", | |
| "main": "fr.js", | |
| "scripts": { | |
| "test": "echo \"Error: no test specified\" && exit 1" | |
| }, | |
| "keywords": [ | |
| "flowroute" |
This file contains hidden or 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
| (function (program, flowroute) { | |
| var itemsPerPage = 10; | |
| var formatNumber = function (raw) { | |
| return `+${raw.substring(0, 1)} (${raw.substring(1,4)}) ${raw.substring(4,7)}-${raw.substring(7,11)}`; | |
| } | |
| var listNPAs = function (err, npaList) { | |
| if (err) { |
This file contains hidden or 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
| module.exports = function (context, req) { | |
| const badStatusMsg = "Please pass an r param on the query string with a value between 0 and 4"; | |
| const badStatus = msg => ({ | |
| status: 400, | |
| body: msg | |
| }); | |
This file contains hidden or 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 { IterationsService } from './iterations.service'; | |
| ... | |
| providers: [IterationsService], | |
| ... |
This file contains hidden or 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 { Injectable } from '@angular/core'; | |
| import { Observable, Subject } from 'rxjs/Rx'; | |
| import { Http, URLSearchParams } from '@angular/http'; | |
| export interface IBifurcation { | |
| r: number; | |
| x: number; | |
| } | |
| @Injectable() |
This file contains hidden or 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
| <h1> | |
| {{title}} | |
| </h1> | |
| <canvas width="1000" height="500" #canvas></canvas> |
This file contains hidden or 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 { Component, ViewChild, ElementRef, OnInit } from '@angular/core'; | |
| import { IterationsService, IBifurcation } from './iterations.service'; | |
| @Component({ | |
| selector: 'app-root', | |
| templateUrl: './app.component.html', | |
| styleUrls: ['./app.component.css'] | |
| }) | |
| export class AppComponent implements OnInit { |