MCPcopy
hub / github.com/4ian/GDevelop / checkConfiguration

Function checkConfiguration

GDevelop.js/__tests__/GDJSProjectSerialization.js:16–23  ·  view source on GitHub ↗
(project)

Source from the content-addressed store, hash-verified

14
15 it('should keep TextObject configuration after after a save and reload', function () {
16 const checkConfiguration = (project) => {
17 const layout = project.getLayout('Scene');
18 const object = layout.getObjects().getObject('MyObject');
19 const configuration = gd.asTextObjectConfiguration(
20 object.getConfiguration()
21 );
22 expect(configuration.getText()).toBe('Hello');
23 };
24
25 const serializerElement = new gd.SerializerElement();
26 {

Callers 1

Calls 11

getObjectMethod · 0.80
toBeMethod · 0.80
getTextMethod · 0.65
getPropertiesMethod · 0.65
getValueMethod · 0.65
getMethod · 0.65
getLayoutMethod · 0.45
getObjectsMethod · 0.45
getTextureMethod · 0.45
getBehaviorMethod · 0.45
hasMethod · 0.45

Tested by

no test coverage detected