@windward/games 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/babel.config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports = { presets: [
|
|
1
|
+
module.exports = { presets: ['@babel/preset-env'] }
|
|
@@ -219,7 +219,7 @@
|
|
|
219
219
|
)
|
|
220
220
|
"
|
|
221
221
|
:placeholder="
|
|
222
|
-
|
|
222
|
+
getAlt(
|
|
223
223
|
block.metadata.config
|
|
224
224
|
.prompts[index][
|
|
225
225
|
indexPrompt
|
|
@@ -244,11 +244,11 @@
|
|
|
244
244
|
outlined
|
|
245
245
|
:label="
|
|
246
246
|
$t(
|
|
247
|
-
'
|
|
247
|
+
'shared.file.attr.screenreader'
|
|
248
248
|
)
|
|
249
249
|
"
|
|
250
250
|
:placeholder="
|
|
251
|
-
|
|
251
|
+
getAriaDescribedBy(
|
|
252
252
|
block.metadata.config
|
|
253
253
|
.prompts[index][
|
|
254
254
|
indexPrompt
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@windward/games",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "Windward UI Plugin Games",
|
|
5
5
|
"main": "plugin.js",
|
|
6
6
|
"scripts": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
},
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
13
|
-
"url": "git+ssh://git@bitbucket.org/mindedge/windward-
|
|
13
|
+
"url": "git+ssh://git@bitbucket.org/mindedge/windward-ui-plugin-games.git"
|
|
14
14
|
},
|
|
15
15
|
"author": "Ted Celestin <tcelestin@mindedge.com>",
|
|
16
16
|
"contributors": [
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"vuetify": "^2.6.4"
|
|
50
50
|
},
|
|
51
51
|
"bugs": {
|
|
52
|
-
"url": "https://bitbucket.org/mindedge/windward-
|
|
52
|
+
"url": "https://bitbucket.org/mindedge/windward-ui-plugin-games/issues"
|
|
53
53
|
},
|
|
54
54
|
"directories": {
|
|
55
55
|
"test": "test"
|
package/test/mocks.js
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
import { defaultMocks as
|
|
1
|
+
import { defaultMocks as mocks } from '@windward/core/test/mocks'
|
|
2
|
+
|
|
3
|
+
jest.mock('@windward/core/utils', () => ({
|
|
4
|
+
__esModule: true, // this property makes it work
|
|
5
|
+
default: 'mockedDefaultExport',
|
|
6
|
+
MathExpressionEditor: jest.fn(),
|
|
7
|
+
MathLiveWrapper: jest.fn(),
|
|
8
|
+
ContentViewer: jest.fn(),
|
|
9
|
+
}))
|
|
2
10
|
|
|
3
11
|
require('./__mocks__/fileMock')
|
|
4
12
|
require('./__mocks__/styleMock')
|
|
5
13
|
require('./__mocks__/modelMock')
|
|
6
14
|
require('./__mocks__/componentsMock')
|
|
7
15
|
|
|
8
|
-
export const defaultMocks =
|
|
16
|
+
export const defaultMocks = mocks
|
|
@@ -13,8 +13,8 @@ describe('FLashcard slides manager', () => {
|
|
|
13
13
|
test('is a Vue instance', () => {
|
|
14
14
|
const wrapper = shallowMount(FlashCardSlidesManager, {
|
|
15
15
|
propsData: {
|
|
16
|
-
settings
|
|
17
|
-
context
|
|
16
|
+
settings,
|
|
17
|
+
context,
|
|
18
18
|
data: {},
|
|
19
19
|
},
|
|
20
20
|
mocks: defaultMocks,
|