From c7a3b2049ed79e6a72e1f693ed9351662ff9a021 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joseph=20Th=C3=A9berge?= Date: Fri, 30 Jan 2026 12:56:36 -0800 Subject: [PATCH] fix: apply default options consistently across all client functions --- lib/inline.js | 2 +- test/cases/integration.out | 10 +++++----- test/cli.js | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/inline.js b/lib/inline.js index af24fb93..c589a2d2 100644 --- a/lib/inline.js +++ b/lib/inline.js @@ -24,7 +24,7 @@ module.exports = function makeJuiceClient(juiceClient) { juiceClient.inlineDocument = inlineDocument; function inlineDocument($, css, options) { - options = options || {}; + options = utils.getDefaultOptions(options); var rules = utils.parseCSS(css); var editedElements = []; var styleAttributeName = 'style'; diff --git a/test/cases/integration.out b/test/cases/integration.out index d9b3f865..67d8372b 100644 --- a/test/cases/integration.out +++ b/test/cases/integration.out @@ -10,14 +10,14 @@ - +
- +

Hi there,

@@ -26,7 +26,7 @@

This is a really simple email template. Its sole purpose is to get you to click the button below.

How do I use it?

All the information you need is on GitHub.

- +

View the source and instructions on GitHub

@@ -49,14 +49,14 @@ - +