Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Barabasbalazs
Copy link

πŸ”— Linked issue

japa/runner#53

❓ Type of change

  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

When the dataset is composed of objects with different keys, and want to print it using $self it shows the object as a a string instead of [object Object].

So for a test that looks like this:

 test("update a task with {$self}")
    .with([{ completed: true }, { title: "I'm happy now!" }])
    .run(async ({ assert }, changeTask) => {
      assert.equal(1 + 1, 2);
    });

The logging originaly looked like this:

old_log

With the changes it will look like this:

updated_log

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@thetutlage thetutlage merged commit b73bf71 into japa:develop Dec 10, 2024
6 checks passed
@thetutlage
Copy link
Collaborator

Thanks πŸ‘

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants