Skip to content

Commit 62a99e3

Browse files
committed
update tests for figma
1 parent 241362e commit 62a99e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/octopus-fig/test/integration/figma-parser/services/asset-updater.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export class AssetUpdater {
108108
}
109109

110110
const reader = new SourceApiReader(readerOptions)
111-
const design = reader.parse()
111+
const design = reader.getSourceDesign()
112112

113113
design.on('ready:design', (design) => this._onDesign(design))
114114
design.on('ready:style', (chunk) => this._onStyle(chunk))

packages/octopus-fig/test/integration/squid-plugin/services/test-comparer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class TestComparer extends BaseTestComparer {
2727
throw new Error(`Wrong SourceData for assetId: '${assetId}' and sourceDataPath: '${sourceDataPath}'`)
2828
const reader = new SourcePluginReader(sourceData)
2929

30-
const result = await this._octopusConverter.convertDesign({ designEmitter: reader.parse() })
30+
const result = await this._octopusConverter.convertDesign({ designEmitter: reader.getSourceDesign() })
3131
const { components: componentsGenerated, manifest: manifestGenerated } = result ?? {}
3232

3333
const componentsGenValues = (componentsGenerated ?? [])

0 commit comments

Comments
 (0)