'use strict'

// require
const NeDB_Modules = require('../nedb_module.js')
let dbmethod = new NeDB_Modules()

// var
let target_cid = "aW2hG7kwoOPfhzkX"

/*
let instance = {
  "cid": target_cid,
  "idx": 0,
  "col": 321,
  "tag": ["公式", "よくわかった"],
  "sty": "txt",
  "con": '$y = ax => x = \frac{y}{a}$'
}

dbmethod.set_tile(instance, (newdocs) => {
  console.log(newdocs)
})
//*/

/*
   dbmethod.get_tiles_cid(target_cid, (docs) => {
   console.log(docs)
   })
   //*/

/*
   dbmethod.set_clip(['helloworld', 'coordinote'], (newdocs) => {
   console.log(newdocs)
   })
   //*/

/*
   let instance = {
   "cid": target_cid,
   "idx": 0,
   "col": 321,
   "tag": ["公式", "よくわかった"],
   "sty": "txt",
   "con": '$y = ax => x = \frac{y}{a}$'
   }
   dbmethod.set_tile(instance, (newdocs) => {
   console.log(newdocs)
   })
   //*/

'use strict'

// require
const NeDB_Modules = require('../nedb_module.js')
let dbmethod = new NeDB_Modules()

// var
let target_cid = "aW2hG7kwoOPfhzkX"

/*
let instance = {
  "cid": target_cid,
  "idx": 0,
  "col": 321,
  "tag": ["公式", "よくわかった"],
  "sty": "txt",
  "con": '$y = ax => x = \frac{y}{a}$',
   "hoge", "hoge"
}

dbmethod.set_tile(instance, (newdocs) => {
  console.log(newdocs)
})
//*/

/*
   dbmethod.get_tiles_cid(target_cid, (docs) => {
   console.log(docs)
   })
   //*/

/*
   dbmethod.set_clip(['helloworld', 'coordinote'], (newdocs) => {
   console.log(newdocs)
   })
   //*/

/*
   let instance = {
   "cid": target_cid,
   "idx": 0,
   "col": 321,
   "tag": ["公式", "よくわかった"],
   "sty": "txt",
   "con": '$y = ax => x = \frac{y}{a}$'
   }
   dbmethod.set_tile(instance, (newdocs) => {
   console.log(newdocs)
   })
   //*/

fix テストコード