Skip to content

Commit

Permalink
Merge branch '5.1' into 5
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Oct 15, 2023
2 parents c8e3d9f + b786042 commit 6add646
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
},
"extra": {
"expose": [
"client/dist"
"client/dist",
"client/lang"
]
},
"minimum-stability": "dev",
Expand Down
1 change: 1 addition & 0 deletions src/Method.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public function getThumbnail(): string
*/
public function applyRequirements(): void
{
Requirements::add_i18n_javascript('silverstripe/webauthn-authenticator: client/lang');
Requirements::javascript('silverstripe/webauthn-authenticator: client/dist/js/bundle.js');
Requirements::css('silverstripe/webauthn-authenticator: client/dist/styles/bundle.css');
}
Expand Down
2 changes: 1 addition & 1 deletion tests/MethodTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function testApplyRequirements()
$method = new Method();
$method->applyRequirements();

$this->assertCount(1, Requirements::backend()->getJavascript());
$this->assertcount(2, Requirements::backend()->getJavascript());
$this->assertCount(1, Requirements::backend()->getCSS());
}

Expand Down

0 comments on commit 6add646

Please sign in to comment.