void () { doTestFromTextToJson(" \"react-dom\": \"^16.5.2\"\n", """ { "name": "untitled", "version": "1.0.0", "dependencies": { "react"<caret>: "^16.5.2", "react-dom": "^16.5.2" } }""", """ { "name": "untitled", "version": "1.0.0", "dependencies": { "react-dom": "^16.5.2", "react": "^16.5.2", "react-dom": "^16.5.2" } }"""); }