Skip to content

Commit 972136e

Browse files
fix indention
1 parent 19205a6 commit 972136e

1 file changed

Lines changed: 18 additions & 17 deletions

File tree

cli/test/commands/migrate.test.ts

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ describe('migrations', () => {
1515
const outputFile = join(testDirectory, 'output.yaml');
1616
writeFileSync(
1717
inputFile,
18-
`
19-
bucket_definitions:
20-
user_lists:
21-
parameters: SELECT request.user_id() as user_id
22-
data:
18+
/* yaml */ `
19+
bucket_definitions:
20+
user_lists:
21+
parameters: SELECT request.user_id() as user_id
22+
data:
2323
- SELECT * FROM lists WHERE owner_id = bucket.user_id
2424
`
2525
);
@@ -31,18 +31,19 @@ describe('migrations', () => {
3131

3232
const transformed = readFileSync(outputFile).toString('utf8');
3333
expect(transformed)
34-
.toStrictEqual(`# Adds YAML Schema support for VSCode users with the YAML extension installed. This enables features like validation and autocompletion based on the provided schema.
35-
# yaml-language-server: $schema=https://unpkg.com/@powersync/service-sync-rules@latest/schema/sync_rules.json
36-
config:
37-
edition: 3
38-
streams:
39-
# This Sync Stream has been translated from bucket definitions. There may be more efficient ways to express these queries.
40-
# You can add additional queries to this list if you need them.
41-
# For details, see the documentation: https://docs.powersync.com/sync/streams/overview
42-
migrated_to_streams:
43-
auto_subscribe: true
44-
queries:
34+
.toStrictEqual(/* yaml */ `# Adds YAML Schema support for VSCode users with the YAML extension installed. This enables features like validation and autocompletion based on the provided schema.
35+
# yaml-language-server: $schema=https://unpkg.com/@powersync/service-sync-rules@latest/schema/sync_rules.json
36+
config:
37+
edition: 3
38+
39+
streams:
40+
# This Sync Stream has been translated from bucket definitions. There may be more efficient ways to express these queries.
41+
# You can add additional queries to this list if you need them.
42+
# For details, see the documentation: https://docs.powersync.com/sync/streams/overview
43+
migrated_to_streams:
44+
auto_subscribe: true
45+
queries:
4546
- SELECT * FROM lists WHERE owner_id = auth.user_id()
46-
`);
47+
`);
4748
});
4849
});

0 commit comments

Comments
 (0)