Skip to content

Commit 08b6fcb

Browse files
committedOct 23, 2018
update(tests): new new flat-embed.com endpoint
1 parent d13f170 commit 08b6fcb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed
 

‎test/unit/embed.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe('Unit - Embed tests', () => {
88
it('should instance an Embed using a container', () => {
99
const container = document.getElementById('container');
1010
const embed = new Embed(container);
11-
assert.equal(embed.element.getAttribute('src'), 'https://flat.io/embed/blank?jsapi=true');
11+
assert.equal(embed.element.getAttribute('src'), 'https://flat-embed.com/blank?jsapi=true');
1212
assert.equal(container.childNodes.length, 1);
1313
assert.equal(container.childNodes[0], embed.element);
1414
container.removeChild(embed.element);
@@ -17,7 +17,7 @@ describe('Unit - Embed tests', () => {
1717
it('should instance an Embed using a jQuery selector', () => {
1818
const container = $('#container');
1919
const embed = new Embed(container);
20-
assert.equal(embed.element.getAttribute('src'), 'https://flat.io/embed/blank?jsapi=true');
20+
assert.equal(embed.element.getAttribute('src'), 'https://flat-embed.com/blank?jsapi=true');
2121
assert.equal(container[0].childNodes.length, 1);
2222
assert.equal(container[0].childNodes[0], embed.element);
2323
container[0].removeChild(embed.element);
@@ -61,7 +61,7 @@ describe('Unit - Embed tests', () => {
6161
it('should pass an existing iframe', () => {
6262
const container = document.getElementById('container');
6363
const iframe = document.createElement('iframe');
64-
iframe.setAttribute('src', 'https://flat.io/embed/1234');
64+
iframe.setAttribute('src', 'https://flat-embed.com/1234');
6565
container.appendChild(iframe);
6666

6767
const embed = new Embed(iframe);
@@ -114,7 +114,7 @@ describe('Unit - Embed tests', () => {
114114
const embed = new Embed(container, {
115115
score: '1234'
116116
});
117-
assert.equal(embed.element.getAttribute('src'), 'https://flat.io/embed/1234?jsapi=true');
117+
assert.equal(embed.element.getAttribute('src'), 'https://flat-embed.com/1234?jsapi=true');
118118
container.removeChild(embed.element);
119119
});
120120

@@ -127,7 +127,7 @@ describe('Unit - Embed tests', () => {
127127
foo: 42
128128
}
129129
});
130-
assert.equal(embed.element.getAttribute('src'), 'https://flat.io/embed/1234?jsapi=true&controlsFloating=false&foo=42');
130+
assert.equal(embed.element.getAttribute('src'), 'https://flat-embed.com/1234?jsapi=true&controlsFloating=false&foo=42');
131131
container.removeChild(embed.element);
132132
});
133133

@@ -141,7 +141,7 @@ describe('Unit - Embed tests', () => {
141141
themeCursorV0: '#E53935'
142142
}
143143
});
144-
assert.equal(embed.element.getAttribute('src'), 'https://flat.io/embed/1234?jsapi=true&controlsFloating=false&themeIconsPrimary=%23E53935&themeCursorV0=%23E53935');
144+
assert.equal(embed.element.getAttribute('src'), 'https://flat-embed.com/1234?jsapi=true&controlsFloating=false&themeIconsPrimary=%23E53935&themeCursorV0=%23E53935');
145145
assert.equal(embed.element.getAttribute('width'), '100%');
146146
assert.equal(embed.element.getAttribute('height'), '100%');
147147
container.removeChild(embed.element);
@@ -157,7 +157,7 @@ describe('Unit - Embed tests', () => {
157157
controlsFloating: false
158158
}
159159
});
160-
assert.equal(embed.element.getAttribute('src'), 'https://flat.io/embed/1234?jsapi=true&controlsFloating=false');
160+
assert.equal(embed.element.getAttribute('src'), 'https://flat-embed.com/1234?jsapi=true&controlsFloating=false');
161161
assert.equal(embed.element.getAttribute('width'), '800');
162162
assert.equal(embed.element.getAttribute('height'), '450');
163163
assert.equal(embed.element.getAttribute('allowfullscreen'), 'true');

0 commit comments

Comments
 (0)
Please sign in to comment.