Skip to content

Commit

Permalink
fix: type error in the tests and tests failing
Browse files Browse the repository at this point in the history
  • Loading branch information
JCMais committed Dec 25, 2024
1 parent 4d1967b commit 728ed68
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions scripts/ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,10 @@ else
ldd ./lib/binding/node_libcurl.node || true
fi

sleep 1
echo "Showing /etc/hosts"
cat /etc/hosts || true
sleep 1

if [ "$RUN_TESTS" == "true" ]; then
if [ -n "$ELECTRON_VERSION" ]; then
Expand Down
2 changes: 0 additions & 2 deletions test/curl/callbacks.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import 'should'

import { createServer } from '../helper/server'
import { Curl, CurlCode } from '../../lib'
import { CurlPreReqFunc } from '../../lib/enum/CurlPreReqFunc'
Expand Down
2 changes: 1 addition & 1 deletion test/helper/commonOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function withCommonTestOptions(curl: Curl | Easy | Record<string, any>) {
curl.setOpt(key, value)
})
} else {
Object.assign(curl, options)
Object.assign(options, curl)
}

return options
Expand Down
1 change: 0 additions & 1 deletion test/helper/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export const createApp = () => {
app
.use(express.urlencoded({ extended: true }))
.use(express.raw({ limit: '100MB', type: 'application/node-libcurl.raw' }))
// @ts-expect-error - no time for fixing this right now
.use(cookieParser())

app.disable('etag')
Expand Down

0 comments on commit 728ed68

Please sign in to comment.