@@ -57,7 +57,7 @@ test(`streaming works`, async function () {
57
57
58
58
// @ts -ignore avoid DOM lib for testing purposes
59
59
if ( typeof File !== 'undefined' ) {
60
- test . todo ( 'handles builtinFile' , async function ( ) {
60
+ test ( 'handles builtinFile' , async function ( ) {
61
61
const file = await fetch ( url )
62
62
. then ( ( x ) => x . arrayBuffer ( ) )
63
63
// @ts -ignore avoid DOM lib for testing purposes
@@ -68,14 +68,14 @@ if (typeof File !== 'undefined') {
68
68
} ) ;
69
69
}
70
70
71
- test . todo ( 'handles Response' , async function ( ) {
71
+ test ( 'handles Response' , async function ( ) {
72
72
const file = await fetch ( url ) ;
73
73
74
74
const result = await client . audio . transcriptions . create ( { file, model } ) ;
75
75
expectSimilar ( result . text , correctAnswer , 12 ) ;
76
76
} ) ;
77
77
78
- test . todo ( 'handles fs.ReadStream' , async function ( ) {
78
+ test ( 'handles fs.ReadStream' , async function ( ) {
79
79
const result = await client . audio . transcriptions . create ( {
80
80
file : fs . createReadStream ( 'sample1.mp3' ) ,
81
81
model,
@@ -87,7 +87,7 @@ const fineTune = `{"prompt": "<prompt text>", "completion": "<ideal generated te
87
87
88
88
// @ts -ignore avoid DOM lib for testing purposes
89
89
if ( typeof Blob !== 'undefined' ) {
90
- test . todo ( 'toFile handles builtin Blob' , async function ( ) {
90
+ test ( 'toFile handles builtin Blob' , async function ( ) {
91
91
const result = await client . files . create ( {
92
92
file : await toFile (
93
93
// @ts -ignore avoid DOM lib for testing purposes
@@ -99,7 +99,7 @@ if (typeof Blob !== 'undefined') {
99
99
expect ( result . status ) . toEqual ( 'uploaded' ) ;
100
100
} ) ;
101
101
}
102
- test . todo ( 'toFile handles Uint8Array' , async function ( ) {
102
+ test ( 'toFile handles Uint8Array' , async function ( ) {
103
103
const result = await client . files . create ( {
104
104
file : await toFile (
105
105
// @ts -ignore avoid DOM lib for testing purposes
@@ -110,7 +110,7 @@ test.todo('toFile handles Uint8Array', async function () {
110
110
} ) ;
111
111
expect ( result . status ) . toEqual ( 'uploaded' ) ;
112
112
} ) ;
113
- test . todo ( 'toFile handles ArrayBuffer' , async function ( ) {
113
+ test ( 'toFile handles ArrayBuffer' , async function ( ) {
114
114
const result = await client . files . create ( {
115
115
file : await toFile (
116
116
// @ts -ignore avoid DOM lib for testing purposes
@@ -121,7 +121,7 @@ test.todo('toFile handles ArrayBuffer', async function () {
121
121
} ) ;
122
122
expect ( result . status ) . toEqual ( 'uploaded' ) ;
123
123
} ) ;
124
- test . todo ( 'toFile handles DataView' , async function ( ) {
124
+ test ( 'toFile handles DataView' , async function ( ) {
125
125
const result = await client . files . create ( {
126
126
file : await toFile (
127
127
// @ts -ignore avoid DOM lib for testing purposes
0 commit comments