Skip to content

Commit a63e07e

Browse files
authored
Merge branch '3.x' into glob-backward-compitibilty
2 parents f867d59 + 236dc72 commit a63e07e

File tree

26 files changed

+678
-402
lines changed

26 files changed

+678
-402
lines changed

lib/container.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,18 +162,18 @@ class Container {
162162
* @param {Object<string, *>} newSupport
163163
* @param {Object<string, *>} newPlugins
164164
*/
165-
static clear(newHelpers, newSupport, newPlugins) {
166-
container.helpers = newHelpers || {}
165+
static clear(newHelpers = {}, newSupport = {}, newPlugins = {}) {
166+
container.helpers = newHelpers
167167
container.translation = loadTranslation()
168-
container.proxySupport = createSupportObjects(newSupport || {})
169-
container.plugins = newPlugins || {}
168+
container.proxySupport = createSupportObjects(newSupport)
169+
container.plugins = newPlugins
170170
asyncHelperPromise = Promise.resolve()
171171
store.actor = null
172172
debug('container cleared')
173173
}
174174

175175
/**
176-
* @param {Function} fn
176+
* @param {Function|null} fn
177177
* @returns {Promise<void>}
178178
*/
179179
static async started(fn = null) {

lib/mocha/gherkin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ module.exports = (text, file) => {
107107
)
108108
continue
109109
}
110-
if (child.scenario && (currentLanguage ? child.scenario.keyword === currentLanguage.contexts.ScenarioOutline : child.scenario.keyword === 'Scenario Outline')) {
110+
if (child.scenario && (currentLanguage ? currentLanguage.contexts.ScenarioOutline.includes(child.scenario.keyword) : child.scenario.keyword === 'Scenario Outline')) {
111111
for (const examples of child.scenario.examples) {
112112
const fields = examples.tableHeader.cells.map(c => c.value)
113113
for (const example of examples.tableBody) {

0 commit comments

Comments
 (0)