Skip to content

Commit 85fcb71

Browse files
committed
credentials test
1 parent bdc3e9d commit 85fcb71

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/test/unit/credentials.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import {
44
checkCredentials,
55
hasAddressMatchAllRule
66
} from '../../utils/credentials.js'
7-
import { Credentials } from '@oceanprotocol/ddo-js'
87
import {
98
buildEnvOverrideConfig,
109
OverrideEnvConfig,
@@ -13,6 +12,7 @@ import {
1312
} from '../utils/utils.js'
1413
import { ENVIRONMENT_VARIABLES } from '../../utils/constants.js'
1514
import { homedir } from 'os'
15+
import { Credentials } from '@oceanprotocol/ddo-js'
1616

1717
let envOverrides: OverrideEnvConfig[]
1818

@@ -79,8 +79,8 @@ describe('credentials', () => {
7979

8080
it('should deny access with empty values in allow lists', () => {
8181
const credentials: Credentials = {
82-
allow: [],
83-
deny: [
82+
deny: [],
83+
allow: [
8484
{
8585
type: 'address',
8686
values: []
@@ -93,8 +93,8 @@ describe('credentials', () => {
9393
})
9494
it('should allow access with address in allow list', () => {
9595
const credentials: Credentials = {
96-
allow: [],
97-
deny: [
96+
deny: [],
97+
allow: [
9898
{
9999
type: 'address',
100100
values: ['0x123']

0 commit comments

Comments
 (0)