@@ -78,7 +78,7 @@ describe('paseto format', () => {
78
78
79
79
const client = await this . provider . Client . find ( clientId ) ;
80
80
const token = new this . provider . AccessToken ( { client, ...fullPayload , resourceServer } ) ;
81
- expect ( await token . save ( ) ) . to . match ( / ^ v 1 .p u b l i c ./ ) ;
81
+ expect ( await token . save ( ) ) . to . match ( / ^ v 1 \ .p u b l i c \ ./ ) ;
82
82
} ) ;
83
83
84
84
it ( 'v2.public' , async function ( ) {
@@ -93,7 +93,7 @@ describe('paseto format', () => {
93
93
94
94
const client = await this . provider . Client . find ( clientId ) ;
95
95
const token = new this . provider . AccessToken ( { client, ...fullPayload , resourceServer } ) ;
96
- expect ( await token . save ( ) ) . to . match ( / ^ v 2 .p u b l i c ./ ) ;
96
+ expect ( await token . save ( ) ) . to . match ( / ^ v 2 \ .p u b l i c \ ./ ) ;
97
97
} ) ;
98
98
99
99
it ( 'v1.local' , async function ( ) {
@@ -109,7 +109,7 @@ describe('paseto format', () => {
109
109
110
110
const client = await this . provider . Client . find ( clientId ) ;
111
111
const token = new this . provider . AccessToken ( { client, ...fullPayload , resourceServer } ) ;
112
- expect ( await token . save ( ) ) . to . match ( / ^ v 1 .l o c a l ./ ) ;
112
+ expect ( await token . save ( ) ) . to . match ( / ^ v 1 \ .l o c a l \ ./ ) ;
113
113
} ) ;
114
114
115
115
it ( 'v1.local (keyObject)' , async function ( ) {
@@ -125,7 +125,7 @@ describe('paseto format', () => {
125
125
126
126
const client = await this . provider . Client . find ( clientId ) ;
127
127
const token = new this . provider . AccessToken ( { client, ...fullPayload , resourceServer } ) ;
128
- expect ( await token . save ( ) ) . to . match ( / ^ v 1 .l o c a l ./ ) ;
128
+ expect ( await token . save ( ) ) . to . match ( / ^ v 1 \ .l o c a l \ ./ ) ;
129
129
} ) ;
130
130
131
131
it ( 'v2.local is not supported' , async function ( ) {
0 commit comments