-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: import fixes to fix e2e tests
Signed-off-by: Todd Baert <[email protected]>
- Loading branch information
Showing
4 changed files
with
8 additions
and
6 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
|
||
import assert from 'assert'; | ||
import { OpenFeature } from '../../src'; | ||
import { OpenFeature } from '../..'; | ||
import { FlagdProvider } from '@openfeature/flagd-provider'; | ||
|
||
const FLAGD_NAME = 'flagd Provider'; | ||
|
||
// register the flagd provider before the tests. | ||
console.log('Setting flagd provider...'); | ||
OpenFeature.setProvider(new FlagdProvider({ cache: 'disabled' })); | ||
assert(OpenFeature.providerMetadata.name === FLAGD_NAME, new Error(`Expected ${FLAGD_NAME} provider to be configured, instead got: ${OpenFeature.providerMetadata.name}`)); | ||
assert( | ||
OpenFeature.providerMetadata.name === FLAGD_NAME, | ||
new Error(`Expected ${FLAGD_NAME} provider to be configured, instead got: ${OpenFeature.providerMetadata.name}`) | ||
); | ||
console.log('flagd provider configured!'); |