@@ -8,7 +8,7 @@ describe('Unit - Embed tests', () => {
8
8
it ( 'should instance an Embed using a container' , ( ) => {
9
9
const container = document . getElementById ( 'container' ) ;
10
10
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' ) ;
12
12
assert . equal ( container . childNodes . length , 1 ) ;
13
13
assert . equal ( container . childNodes [ 0 ] , embed . element ) ;
14
14
container . removeChild ( embed . element ) ;
@@ -17,7 +17,7 @@ describe('Unit - Embed tests', () => {
17
17
it ( 'should instance an Embed using a jQuery selector' , ( ) => {
18
18
const container = $ ( '#container' ) ;
19
19
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' ) ;
21
21
assert . equal ( container [ 0 ] . childNodes . length , 1 ) ;
22
22
assert . equal ( container [ 0 ] . childNodes [ 0 ] , embed . element ) ;
23
23
container [ 0 ] . removeChild ( embed . element ) ;
@@ -61,7 +61,7 @@ describe('Unit - Embed tests', () => {
61
61
it ( 'should pass an existing iframe' , ( ) => {
62
62
const container = document . getElementById ( 'container' ) ;
63
63
const iframe = document . createElement ( 'iframe' ) ;
64
- iframe . setAttribute ( 'src' , 'https://flat.io/ embed/1234' ) ;
64
+ iframe . setAttribute ( 'src' , 'https://flat- embed.com /1234' ) ;
65
65
container . appendChild ( iframe ) ;
66
66
67
67
const embed = new Embed ( iframe ) ;
@@ -114,7 +114,7 @@ describe('Unit - Embed tests', () => {
114
114
const embed = new Embed ( container , {
115
115
score : '1234'
116
116
} ) ;
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' ) ;
118
118
container . removeChild ( embed . element ) ;
119
119
} ) ;
120
120
@@ -127,7 +127,7 @@ describe('Unit - Embed tests', () => {
127
127
foo : 42
128
128
}
129
129
} ) ;
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' ) ;
131
131
container . removeChild ( embed . element ) ;
132
132
} ) ;
133
133
@@ -141,7 +141,7 @@ describe('Unit - Embed tests', () => {
141
141
themeCursorV0 : '#E53935'
142
142
}
143
143
} ) ;
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' ) ;
145
145
assert . equal ( embed . element . getAttribute ( 'width' ) , '100%' ) ;
146
146
assert . equal ( embed . element . getAttribute ( 'height' ) , '100%' ) ;
147
147
container . removeChild ( embed . element ) ;
@@ -157,7 +157,7 @@ describe('Unit - Embed tests', () => {
157
157
controlsFloating : false
158
158
}
159
159
} ) ;
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' ) ;
161
161
assert . equal ( embed . element . getAttribute ( 'width' ) , '800' ) ;
162
162
assert . equal ( embed . element . getAttribute ( 'height' ) , '450' ) ;
163
163
assert . equal ( embed . element . getAttribute ( 'allowfullscreen' ) , 'true' ) ;
0 commit comments