Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/deploy.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ describe('Server errors', () => {
test('Error in form', async () => {
const { stderr } = await run('incorrect_form');
expect(stderr).toMatch(
'Unknown properties: hello. Available properties are: api_call_notifications, async_callback_actions, authorization_policies, body, callback_actions, default_payload, email_notifications, fields, flash_alert, flash_notice, live_reindex, metadata, name, redirect_to, request_allowed, resource, resource_owner, response_headers, return_to, sms_notifications, spam_protection.'
'Unknown properties in `form_configurations/hello.liquid`: hello. Available properties are: api_call_notifications, async_callback_actions, authorization_policies, body, callback_actions, default_payload, email_notifications, fields, flash_alert, flash_notice, live_reindex, metadata, name, redirect_to, request_allowed, resource, resource_owner, response_headers, return_to, sms_notifications, spam_protection.'
);
});

Expand Down
1 change: 1 addition & 0 deletions test/fixtures/deploy/correct_with_assets/app/assets/bar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// Test asset file
2 changes: 1 addition & 1 deletion test/fixtures/deploy/modules_update/app/pos-modules.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"modules": {
"core": "1.5.5"
"core": "2.0.7"
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"modules": {
"core": "1.5.5"
"core": "2.0.7"
}
}
10 changes: 10 additions & 0 deletions test/sync.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
const exec = require('./utils/exec');
const cliPath = require('./utils/cliPath');
const path = require('path');
const fs = require('fs');

const stepTimeout = 3500;

Expand All @@ -28,6 +29,15 @@ const kill = p => {

jest.retryTimes(2);

// Store original content to restore after tests
const barJsPath = path.join(cwd('correct_with_assets'), 'app/assets/bar.js');
const originalBarJsContent = fs.readFileSync(barJsPath, 'utf8');

afterAll(() => {
// Restore bar.js to original content after all tests
fs.writeFileSync(barJsPath, originalBarJsContent);
});

describe('Happy path', () => {
test('sync assets', async () => {

Expand Down