Skip to content

Commit c49cc6c

Browse files
committed
ACP2E-4058: Not minified JS sometimes loads ignoring 'enable js minifications'
1 parent 2e1e170 commit c49cc6c

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

dev/tests/js/jasmine/tests/lib/mage/requirejs/mixins.test.js

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
2-
* Copyright © Magento, Inc. All rights reserved.
3-
* See COPYING.txt for license details.
2+
* Copyright 2019 Adobe
3+
* All Rights Reserved.
44
*/
55

66
/* eslint max-nested-callbacks: 0 */
@@ -15,6 +15,19 @@ require.config({
1515
define(['rjsResolver', 'mixins'], function (resolver, mixins) {
1616
'use strict';
1717

18+
describe('mixins.js context behavior', function () {
19+
var defContext, unbundledContext;
20+
21+
beforeEach(function () {
22+
defContext = require.s.contexts._;
23+
unbundledContext = require.s.contexts.$;
24+
});
25+
26+
it('should copy nameToUrl from default context to unbundled context', function () {
27+
expect(unbundledContext.nameToUrl).toBe(defContext.nameToUrl);
28+
});
29+
});
30+
1831
describe('mixins module', function () {
1932
beforeEach(function (done) {
2033
spyOn(mixins, 'hasMixins').and.callThrough();

0 commit comments

Comments
 (0)