Skip to content

Instantly share code, notes, and snippets.

@daniel-beet
daniel-beet / dev_setup.ps1
Created August 23, 2016 11:18 — forked from thitemple/dev_setup.ps1
A PowerShell script for installing a dev machine using Chocolatey.
function Add-Path() {
[Cmdletbinding()]
param([parameter(Mandatory=$True,ValueFromPipeline=$True,Position=0)][String[]]$AddedFolder)
# Get the current search path from the environment keys in the registry.
$OldPath=(Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment' -Name PATH).Path
# See if a new folder has been supplied.
if (!$AddedFolder) {
Return 'No Folder Supplied. $ENV:PATH Unchanged'
}
# See if the new folder exists on the file system.
@daniel-beet
daniel-beet / README.md
Last active November 1, 2019 15:50
Angular Testing Tips (for versions >= 2.x)

Angular Testing Examples

This is a set of examples showing ways to test when you depend on routing with components (either in the templates or component code), and want self contained routed feature modules.

TL;DR

  1. You have to use async tests, either with the async() or fakeAsync() test helpers.