@@ -57,56 +57,58 @@ test('Ed25519 Private key', t => {
57
57
t . deepEqual ( actual , expected )
58
58
} )
59
59
60
- test ( 'Ed448 Public key' , t => {
61
- const expected = clone ( fixtures . Ed448 )
62
- delete expected . d
63
- const pem = createPublicKey ( jwkToPem ( expected ) )
64
- const actual = keyObjectToJWK ( pem )
65
-
66
- t . deepEqual ( actual , expected )
67
- } )
68
-
69
- test ( 'Ed448 Private key' , t => {
70
- const expected = fixtures . Ed448
71
- const pem = createPrivateKey ( jwkToPem ( expected ) )
72
- const actual = keyObjectToJWK ( pem )
73
-
74
- t . deepEqual ( actual , expected )
75
- } )
76
-
77
- test ( 'X25519 Public key' , t => {
78
- const expected = clone ( fixtures . X25519 )
79
- delete expected . d
80
- const pem = createPublicKey ( jwkToPem ( expected ) )
81
- const actual = keyObjectToJWK ( pem )
82
-
83
- t . deepEqual ( actual , expected )
84
- } )
85
-
86
- test ( 'X25519 Private key' , t => {
87
- const expected = fixtures . X25519
88
- const pem = createPrivateKey ( jwkToPem ( expected ) )
89
- const actual = keyObjectToJWK ( pem )
90
-
91
- t . deepEqual ( actual , expected )
92
- } )
93
-
94
- test ( 'X448 Public key' , t => {
95
- const expected = clone ( fixtures . X448 )
96
- delete expected . d
97
- const pem = createPublicKey ( jwkToPem ( expected ) )
98
- const actual = keyObjectToJWK ( pem )
99
-
100
- t . deepEqual ( actual , expected )
101
- } )
102
-
103
- test ( 'X448 Private key' , t => {
104
- const expected = fixtures . X448
105
- const pem = createPrivateKey ( jwkToPem ( expected ) )
106
- const actual = keyObjectToJWK ( pem )
107
-
108
- t . deepEqual ( actual , expected )
109
- } )
60
+ if ( ! ( 'electron' in process . versions ) ) {
61
+ test ( 'Ed448 Public key' , t => {
62
+ const expected = clone ( fixtures . Ed448 )
63
+ delete expected . d
64
+ const pem = createPublicKey ( jwkToPem ( expected ) )
65
+ const actual = keyObjectToJWK ( pem )
66
+
67
+ t . deepEqual ( actual , expected )
68
+ } )
69
+
70
+ test ( 'Ed448 Private key' , t => {
71
+ const expected = fixtures . Ed448
72
+ const pem = createPrivateKey ( jwkToPem ( expected ) )
73
+ const actual = keyObjectToJWK ( pem )
74
+
75
+ t . deepEqual ( actual , expected )
76
+ } )
77
+
78
+ test ( 'X25519 Public key' , t => {
79
+ const expected = clone ( fixtures . X25519 )
80
+ delete expected . d
81
+ const pem = createPublicKey ( jwkToPem ( expected ) )
82
+ const actual = keyObjectToJWK ( pem )
83
+
84
+ t . deepEqual ( actual , expected )
85
+ } )
86
+
87
+ test ( 'X25519 Private key' , t => {
88
+ const expected = fixtures . X25519
89
+ const pem = createPrivateKey ( jwkToPem ( expected ) )
90
+ const actual = keyObjectToJWK ( pem )
91
+
92
+ t . deepEqual ( actual , expected )
93
+ } )
94
+
95
+ test ( 'X448 Public key' , t => {
96
+ const expected = clone ( fixtures . X448 )
97
+ delete expected . d
98
+ const pem = createPublicKey ( jwkToPem ( expected ) )
99
+ const actual = keyObjectToJWK ( pem )
100
+
101
+ t . deepEqual ( actual , expected )
102
+ } )
103
+
104
+ test ( 'X448 Private key' , t => {
105
+ const expected = fixtures . X448
106
+ const pem = createPrivateKey ( jwkToPem ( expected ) )
107
+ const actual = keyObjectToJWK ( pem )
108
+
109
+ t . deepEqual ( actual , expected )
110
+ } )
111
+ }
110
112
111
113
test ( 'EC P-256 Public key' , t => {
112
114
const expected = clone ( fixtures [ 'P-256' ] )
0 commit comments