Skip to content

Commit 8201535

Browse files
committed
Ahhhhhh
1 parent 841b636 commit 8201535

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

GithubFS/tests/GithubFS.tests.ps1

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ipmo ../../GithubFS -Force
22

33
$testbotAccountName = 'repotestbot';
44
$testbotRepo = 'scratch';
5-
$workdir = "GH:\$testbotAccountName\$testbotRepo";
5+
$workdir = "GH:/$testbotAccountName/$testbotRepo";
66

77
Describe "GithubFS" {
88
Context "Integrating with cmdlets" {
@@ -13,7 +13,7 @@ Describe "GithubFS" {
1313
}
1414

1515
It "Lets you read the examine the existance of a file" {
16-
item-exists "$workdir/README.md" | Should Be $true;
16+
"$workdir/README.md" | Should Exist;
1717
}
1818

1919
It "Lets you read the contents of a file" {
@@ -31,23 +31,23 @@ Describe "GithubFS" {
3131
new-item -Type File -Path "$workdir/newitem.txt" -Value "content";
3232
cat "$workdir/newitem.txt" | Should Be "content";
3333
rm "$workdir/newitem.txt";
34-
item-exists "$workdir/newitem.txt" | Should Be $false;
34+
"$workdir/newitem.txt" | Should Not Exist;
3535
}
3636

3737
It "Enables the creation or deletion of repos in github" {
3838
$repo = "GH:\$testbotAccountName\scratch2";
3939
mkdir $repo;
40-
item-exists $repo | Should Be $true;
40+
$repo | Should Exist;
4141
rm $repo;
42-
item-exists $repo | Should Be $false;
42+
$repo | Should Not Exist;
4343
}
4444

4545
It "Can make files with mkdir and remove folders" {
4646
$directory = "$workdir/testfolder";
4747
mkdir $directory;
48-
item-exists "$directory/.gitkeep" | Should Be $true;
48+
"$directory/.gitkeep" | Should Exist;
4949
rm $directory;
50-
item-exists $directory | Should Be $false;
50+
$directory | Should Not Exist;
5151
}
5252
}
5353

0 commit comments

Comments
 (0)