-
-
Notifications
You must be signed in to change notification settings - Fork 96
Closed
Description
i look at the results of the diff and see
{added:{}, deleted:{}, updated:{}}
I compare against an object like that, and get not equal.
I json.stringify() the object and it looks the same
I check the number of keys in each section and see some number of keys in one of more areas (usually deleted)
but those keys are not in the object being compared.
BUT
I compare this object (old)
{
compliments: {
anytime: ["Hey there sexy!"],
morning: ["Good morning, handsome!", "Enjoy your day!", "How was your sleep?"],
afternoon: ["Hello, beauty!", "You look sexy!", "Looking good today!"],
evening: ["Wow, you look hot!", "You look nice!", "Hi, sexy!"],
"....-01-01": ["Happy new year!"]
},
updateInterval: 30000,
remoteFile: null,
fadeSpeed: 4000,
morningStartTime: 3,
morningEndTime: 12,
afternoonStartTime: 12,
afternoonEndTime: 17,
random: true,
mockDate: null
}
against this (new)
compliments: {
anytime: [
"Hey there sexy!"
],
morning: [
"Good morning, handsome!",
"Enjoy your day!",
"How was your sleep?"
],
afternoon: [
"Hello, beauty!",
"You look sexy!",
"Looking good today!"
],
evening: [
"Wow, you look hot!",
"You look nice!",
"Hi, sexy!"
],
"-01-01": [
"Happy new year!"
]
},
updateInterval: 30000,
fadeSpeed: 4000,
morningStartTime: 3,
morningEndTime: 12,
afternoonStartTime: 12,
afternoonEndTime: 17,
random: true
}
and get this
{
"added": {
"compliments": {
"-01-01": [
"Happy new year!"
]
}
},
"deleted": {
"compliments": {}
},
"updated": {}
but deleted is incomplete
"....-01-01" is not there
note this text is presented by JSON.stringify() on the objects..
Metadata
Metadata
Assignees
Labels
No labels